Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

GAME code table-driven move generator[Subject Thread] [Add Response]
H. G. Muller wrote on Mon, Jul 27, 2020 06:34 PM UTC in reply to Fergus Duniho from 06:18 PM:

Ah, so this was just a very unlucky choice of variable naming. I was afraid there was something I completely misunderstood about the workings of var and #.

Another question: I had planned to use a flag for every board square, indicating whether a move had gone to that square. By doing setflag dest; on every move. Then we could be sure that the piece that is on it (if any) must have moved before. This because XBetza in principle could define initial moves on any piece.

I am starting to doubt now whether this can be used. To use the flags for testing whether a piece at a given location #to is virgin, I would have to test the flag with the name held in to. Would ?#to work for this?