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

Interactive diagrams. (Updated!) Diagrams that interactively show piece moves.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Sat, Nov 14, 2015 05:11 PM UTC:
I have some thoughts for doing what I described with Game Courier. As long as it doesn't need to move pieces to different positions, it doesn't need to know any general rules for piece movement. It just has to know where each piece on the board can move from its current position. So I could write a GAME Code function that creates a 2d array of all the spaces each piece can move to, copy that information into parameters for onclick JavaScript functions, and use that information to display legal moves when a piece is clicked on. Since this would involve updating all my scripts for displaying boards, it might make sense to incorporate it into Game Courier and even make use of JavaScript to enforce rules. The main problem is that this cannot be universalized. It would work only when rule enforcement is already programmed, and how it works would depend upon how the rules were enforced. However, I could devise a means for letting the user provide the same data for a diagram without programming the rules.