Files
basic-computer-games/89_Tic-Tac-Toe/python/TicTacToe_exe/game_config.py
Chander Jindal 40557ce86b Classic TicTacToe just in Executable format
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.
2022-03-12 22:26:23 +05:30

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