Simple game of tic tac toe I made using the pygame library. Additionally the game has a main menu, a how play section, a credit screen and a nice game over screen. I tried to make the in the Art Deco style of the 20s.
The state of the game is represented by a 3x3 matrix which is hidden in the background. The markers of the tic tac toe grid are represented by a 1, 1 or 0 in the matrix. The marker 1 corresponds to player 1 and -1 corresponds to player 2. An empty cell in the grid is represented by a 0. This is illustrated in the image below.
The sources for this game including the python modules and images can be found below.
These are the sources for the images used in the game.
- Main menu background, accessed: 19.02.21, 15:00 o'clock
- How to play background, accessed: 19.02.21, 15:03 o'clock
- Game over background, accessed: 19.02.21, 15:05 o'clock
- Credits backgrund, accessed: 19.02.21, 15:06 o'clock
These are the sources for the python libraries I used in the game.
These modules are submodules in the Git diretory. It is advised to install them via pip and not as submodules via Git. Further I also use the math module but as far I know this is included in Python and does not have to be downlaoded. The functools module is part of CPython.