mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 20:34:32 -08:00
First, pick either 'X' or 'O' from the screen then, play the normal one Player TicTacToe. Playing on Terminal is kinda boring so, I made it into an executable file.
11 lines
206 B
Python
11 lines
206 B
Python
import os
|
|
|
|
IMAGE_SIZE = 103
|
|
SCREEN_SIZE = 321
|
|
NUM_TILES_SIDE = 3
|
|
NUM_TILES_TOTAL = 9
|
|
MARGIN = 2
|
|
|
|
ASSET_DIR = 'assets'
|
|
ASSET_FILES = [x for x in os.listdir(ASSET_DIR)]
|
|
#assert len(ASSET_FILES) == 8 |