Split tictactoe into different files, classes, and functions to comply with MVC

This commit is contained in:
2025-09-22 19:43:52 +02:00
parent 18e1fb9a1e
commit 17b832064c
12 changed files with 357 additions and 0 deletions

16
MVC/playerhandler.py Normal file
View File

@@ -0,0 +1,16 @@
class Playerhandler:
player1 = None # bool that states which player is currently playing
player1_char = None
player2_char = None
ai = None
def __init__(self):
self.player1 = True # bool that states which player is currently playing
self.player1_char = "X"
self.player2_char = "O"
self.ai = False
'''
def getPlayer(self):
return'''