mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-07 02:24:33 -08:00
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.
This commit is contained in:
11
89_Tic-Tac-Toe/python/TicTacToe_exe/game_config.py
Normal file
11
89_Tic-Tac-Toe/python/TicTacToe_exe/game_config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user