identificationdivision. program-id. schach. * aus Univalg - Beispiel zu Relationen * die eine Äquivalenz modulo ... definieren * Februar 2011 author. JD. date-written. 6.2.2011. date-compiled. datadivision. working-storagesection. 77 white value1. 77 black value2. 77 sumrc pic9(4). linkagesection. 01 chessfield. 05 r pic9(4). 05 c pic9(4). 77 color pic9(4). 77 neighbours pic9(4). 77 rplusc pic9(4). 77 keyofrc pic9(4)V9(4). proceduredivisionusing chessfield
color
rplusc
keyofrc. perform fieldcolor. perform numberneighbours. compute rplusc=r+c. compute keyofrc=r-1/c. stoprun. *
fieldcolor. add r c giving sumrc. iffunction mod(sumrc,2)=0then move white to color else move black to color
numberneighbours. if (r=1or r=8) and (c=1or c=8) then move3to neighbours elseif r=1or r=8or c=1or c=8then move5to neighbours else move8to neighbours end-program schach.
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.