https://github.com/kiarashvosough1999/quoridor
https://github.com/kiarashvosough1999/quoridor
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiarashvosough1999/quoridor
- Owner: kiarashvosough1999
- Created: 2022-11-04T09:47:58.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-04T09:49:36.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T08:19:44.103Z (7 months ago)
- Language: Python
- Size: 291 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quoridor
## What is Quoridor?
Quoridor is a 2 or 4 players board game which whose board consists of 81 square pieces (9x9). Each player is represented by a pawn which begins at the center space of one edge of the board. Besides, there are 20 walls that will be divided equally among the players at the start of the game, and once placed, cannot be moved or removed.
![]()
The objective is to be the first player to move their pawn to any piece on the opposite side of the game board from which it begins.
## What are the rules?
1. Pawns can only move in 4 main directions (but not diagonally)
![]()
![]()
2. If adjacent to another pawn, the pawn may jump over that pawn
![]()
3. Pawns can't jump over the wall
![]()
4. If an adjacent pawn has a third pawn or a wall on the other side of it, the player may move to either space that is immediately adjacent (left or right) to the first pawn
![]()
5. The walls should be placed in a way that there remains at least one path that any pawn can use to reach the other side of the board
![]()
## How to run?
### Python
1. Clone the repository:`git clone https://github.com/kiarashvosough1999/Quoridor.git`
2. Go to the cloned directory and then *python* sub-directory:`cd Quoridor/python/`
3. Create a virtual environment and then activate it:
`python3 -m venv quoridor ; source quoridor/bin/activate`
4. Install the dependencies:
`pip3 install -r requirements.txt`
5. Run the program:`python3 main.py`