Hasami Shogi is a Japanese board game similar to checkers. This version of the game follows "Variant 1" on the Wikipedia page and is intended to be played with two players. The game uses only one type of piece that can move horizontally or vertically, similar to a rook in chess ♜. The main object is to capture all but one of the opposing player's pieces (or men).
- Clone the repo to a local directory
- In the local directory, open a terminal and install the requirements:
pip install -r requirements.txt
- In the terminal run the following:
python3 Main.py
- Players alternate turns (Black starts first, then Red)
- Pieces can only move vertically or horizontally (similar to a Rook in Chess).
- Pieces are captured (either vertically or horziontally) when they are "sandwiched" by opposing pieces, only on their turn. Note: A player's piece will not be lost on their turn if their move sandwiches themselves between the opponents pieces. In other words, a player cannot purposely lose their piece.
- A corner piece can be captured when trapped by the two adjacent squares.
- A player cannot have their own piece(s) captured during their own turn, in the event they sandwich themselves by the opposing player.
- A player wins when the opposing player has 1 or 0 remaining pieces in play.