David Van Horn <email@example.com>
This package provides a distributed Backgammon game.
|(require (planet dvanhorn/backgammon))|
These instructions assume you know the rules of Backgammon.
You can either play in singles or couples mode. In either case, you need to run a "Backgammon Server".
To play a game between two players, call (serve-couples) to start the backgammon server. Then call (play "Player 1") and (play "Player 2"). If the backgammon server is on a different machine than the players, use the #:IP keyword argument to specify the IP address of the server. The players do not need to be on the same computer, but if they are, the calls to play should be in different tabs of DrScheme, or use launch-many-worlds.
When it is not your turn, you will see "Passive" displayed across the board. You are not able to modify the board, but you will see all changes as the opponent makes them. When the opponent defers to you, it will be your turn.
When it is your turn, you may roll the dice and move checkers around the board. To roll the dice, press "R". To select a checker, click on it. Once selected, it is attached to your cursor. Click again on an area of the board to place it.
When you’re done with your turn, press "D". This defers to the opponent and makes your board passive.
In a singles game, the opponent always and immediately defers back to you.
Just as on a real backgammon board, there is no checking of the validity of moves. It is up to the players, all of whom can see each move made, to enforce the rules of play.