/aleo-chess-program

I have create an implementation of chess on LEO lang

land battle chess

Summary

Land Battle Chess is a two-player Chinese board game. It is an abstract strategy game of incomplete information, since each player has only limited knowledge concerning the disposition of the opposing pieces. The rules are complicated; for more details, please refer to Wikipedia.

In the game, there are 3 parties: player1, player2 and the arbiter. When a piece lands on a space occupied by an opposing piece, the arbiter is responsible for comparing pieces. The lower-ordered piece is removed from the board; if the two are of equal order, both are to be removed from the board.

land battle chess

Game Flow

See ./run.sh for an example.

  1. Both Players Initialize their Board
Player 1 Board:
+------+------+------+------+------+
| Gen  | Col  | Mine | Bomb | Sol  |
+------+------+------+------+------+
| Maj Gen | Mine | Mine | Lt Col | Lt Col |
+------+------+------+------+------+
| Col  |  | Col  |  | Maj |
+------+------+------+------+------+
| Maj  | Capt  | Capt | Capt | Col  |
+------+------+------+------+------+
| Col  |  | Capt  |  | Lt  |
+------+------+------+------+------+
| Bomb  | Lt  | Sol | Sol  | Sol  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+


Player 2 Board:
+------+------+------+------+------+
| l0   | l1   | l2   | l3   | l4   |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| XXX  | XXX  | XXX  | XXX  | XXX  |
+------+------+------+------+------+
| Maj | Capt  | Capt | Capt | Col  |
+------+------+------+------+------+
| Col  |  | Capt  |  | Lt  |
+------+------+------+------+------+
| Bomb  | Lt  | Sol | Sol  | Sol  |
+------+------+------+------+------+
| Maj Gen |  | Maj Gen  |  | Maj  |
+------+------+------+------+------+
| Gen | Mine  | Mine | Lt Col | Lt Col |
+------+------+------+------+------+
| Gen | Mine  | Bomb | Col | Sol  |
+------+
  1. Player1 Moves a piece
  2. Player2 Whispers the Arbiter the Target Piece
  3. Aribter Compares pieces
  4. Player2 Moves a piece
  5. Player1 Whispers the Arbiter the Target Piece
  6. Aribter Compares pieces
  7. Continue until Game Ends

My discord - kilikaloko214