Quarto is a board game for two players played on a 4ร4 board. There are 16 unique pieces to play with, each of which is either:
- tall or short;
- red or blue
- square or circular; and
- hollow-top or solid-top.
Players take turns choosing a piece which the other player must then place on the board. A player wins by placing a piece on the board which forms a horizontal, vertical, or diagonal row of four pieces, all of which have a common attribute (all short, all circular, etc.).
Run Quarto.py file to start the game in single or multi-player mode.
How to run:
-
Install pygame.
python3 -m pip install -U pygame or https://www.pygame.org/download.shtml
-
py Quarto.py
Note: If vs code gives any runtime errors due to pygame, run the file using Python IDLE.