https://www.boot.dev/learn/build-personal-project-1
https://tkdocs.com/tutorial/canvas.html
Draw a diamond on a piece of paper and divide it into small squares.
Players try to enclose a square by drawing the missing last side.
When a player encloses a square, the is entitled to make one additional move.
The player who encloses a square earns one point for each closed square and continues to play until there are no more open squares. The winner is the player with the highest number of closed squares.
Blocking the opponent: Although the main goal is not to block the opponent, you can try to prevent them from opening key squares if possible.
Think about future moves and try to anticipate and prevent the opponent from enclosing important squares.
python 3.12.2 - https://www.python.org/downloads/ , https://wiki.python.org/moin/BeginnersGuide/Download
tkinter 8.6 - https://tkdocs.com/tutorial/install.html
- Have the dependencies installed
- In a terminal, access the src directory
- Run either
python main.py
orpython3 main.py
- A window displaying the game should now be available on the screen
- At random, Player 1 or Player 2 will have the first turn
- The game has an auto-close cell feature for the special rule (see "How to play")