The site has moved to a new server, and there are now some issues to fix. Please report anything needing fixing with a comment to the homepage.



The Chess Variant Pages



How to Program Variants with Multi-Move Pieces in Game Courier

THIS REFERENCE PAGE IS CURRENTLY BEING UPDATED TO MAKE THE TUTORIAL SIMPLER, WITH THE CODE BASED ON THE CHU SHOGI PRESET INSTEAD OF THE SUZUMU SHOGI PRESET.

This tutorial assumes that you already understand how to use GAME Code to enforce rules and display legal moves. These subjects are covered in greater depth in these earlier tutorials:

Note: This tutorial is not the same as the tutorial for programming multi-move variants in Game Courier. That tutorial is for programming variants with multiple moves per turn. This tutorial is for programming variants with a single move per turn and pieces that can move multiple times per turn (i.e. the Lion, Soaring Eagle, and Horned Falcon in Chu Shogi).

This tutorial is based on code from the rule-enforcing preset for Chu Shogi.

Setup

TBC

Pieces

TBC

Rules

TBC

Notes

Although the example here was a variant with double-move pieces, the principles behind them can be extended to games with pieces that can move more than twice per turn. The code would get longer and more complicated the farther out you go, but it is absolutely possible, at least in theory.



This 'user submitted' page is a collaboration between the posting user and the Chess Variant Pages. Registered contributors to the Chess Variant Pages have the ability to post their own works, subject to review and editing by the Chess Variant Pages Editorial Staff.


By Adam DeWitt.

Last revised by Adam DeWitt.


Web page created: 2020-07-21. Web page last updated: 2020-07-24