A Pygame implementation of Tic-Tac-Toe.
A little practice project to get my feet wet with Pygame.
-
Clone the repository
git clone asdas
-
Install poetry for package management
pip install poetry
-
Navigate to project root and run:
poetry install
to install all dependences.
-
Run
python main.py
- Pygame's coordinate system
- How to draw lines
- Drawing custom shapes
- How to handle input events like mouse clicks
- How to link the internal game representation with the on-screen representation