Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Programming chess, rules Date: Tue, 21 Jul 2020 11:52:23 +0200 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net MXJOKJ9EKqaJVF0XWr9r+gFGeyimmY3nq1FJ+dSIc4/P/8rjQo Cancel-Lock: sha1:X2TwLwXio0JVRHa3ONhwR/hR9E4= In-Reply-To: Xref: csiph.com comp.lang.javascript:38568 Arno Welzel: > Jonas Thörnvall: > >> Got a little taste for graphical programming. But it was a long time >> since i did program any sort of game. I think i can see how to >> program the actual piece movement of pieces "except for maybe >> castling and draw, and possibly other specialities". >> >> But howto treat the squares of board? Is each square just an object >> ID with two properties "occupied/free" "black and white"? > [...] > > > > *scnr* In addition: here is a live playable version of the 1K-chess-script: -- Arno Welzel https://arnowelzel.de