๐ฒ Vanilla JS Tric-Trac
Vanilla JS implementation of the Backgammon variation Tric-Trac.
- The game has two players: white and black.
- Each player has 15 checker.
- The board is a regular backgammon board.
- All checkers are initially placed outside board.
- The game uses two dice.
- The lower number of the dice must be plaied first.
- If the lower number of the dice cannot be played, the turn switches.
- If a player rolls a double (e.g. 1 + 1), the number is played four times (e.g. 4 * 1).
- If a player rolls a tric-trac, the player plays 2 * 1 & 2 * 2 & 2 * 5 & 2 * 6.
- If a player rolls a 3 and a 4, the player is allowed to move backwards.
- Each player starts in their 1st quarter.
- A player can only move dice to the 2nd and 3rd quarter, if all player's dice are on the board.
- A player can only move dice into the 4th quarter, if mo more dice are in the 1st quarter.
- All dice in the 4th quarter cannot be moved within that quarter.
- All dice in the 4th quarter need to be thrown out with an exact number.
- A single checker in a row is unprotected and can be thrown out by the competitor.
- Two or more checker in a row are protected and blocking this row for the competitor.
- A checker that had been thrown out by the competitor must be brought in before making other moves.
- Initial: The checker hasn't been brought on the board yet or had been thrown out by the competitor.
- Progress: The checker is currently on the board.
- Finished: The checker had been cleared from the board by the player.
Roll |
Move |
1 | 1 |
4 * 1 |
1 | 2 |
tric-trac |
1 | 3 |
1 & 3 |
1 | 4 |
1 & 4 |
1 | 5 |
1 & 5 |
1 | 6 |
1 & 6 |
|
Roll |
Move |
2 | 1 |
tric-trac |
2 | 2 |
4 * 2 |
2 | 3 |
2 & 3 |
2 | 4 |
2 & 4 |
2 | 5 |
2 & 5 |
2 | 6 |
2 & 6 |
|
Roll |
Move |
3 | 1 |
1 & 3 |
3 | 2 |
2 & 3 |
3 | 3 |
4 * 3 |
3 | 4 |
3 & 4 |
3 | 5 |
3 & 5 |
3 | 6 |
3 & 6 |
|
Roll |
Move |
4 | 1 |
1 & 4 |
4 | 2 |
2 & 4 |
4 | 3 |
3 & 4 |
4 | 4 |
4 * 4 |
4 | 5 |
4 & 5 |
4 | 6 |
4 & 6 |
|
Roll |
Move |
5 | 1 |
1 & 5 |
5 | 2 |
2 & 5 |
5 | 3 |
3 & 5 |
5 | 4 |
4 & 5 |
5 | 5 |
4 * 5 |
5 | 6 |
5 & 6 |
|
Roll |
Move |
6 | 1 |
1 & 6 |
6 | 2 |
2 & 6 |
6 | 3 |
3 & 6 |
6 | 4 |
4 & 6 |
6 | 5 |
5 & 6 |
6 | 6 |
4 * 6 |
|
tric-trac = 2 * 1 & 2 * 2 & 2 * 5 & 2 * 6