mirror of
https://github.com/neogeek23/Tic-Tac-Toe.git
synced 2026-02-04 02:48:16 +00:00
Add files via upload
moved def main to top
This commit is contained in:
parent
b5fae35075
commit
47ea3aa921
10
tictactoe.py
10
tictactoe.py
@ -5,6 +5,11 @@ import itertools
|
||||
from enum import Enum
|
||||
|
||||
|
||||
def main():
|
||||
board = create_board_from_inputs()
|
||||
play_tic_tac_toe(board)
|
||||
|
||||
|
||||
class PlacementResult(Enum):
|
||||
success = 0
|
||||
non_numeric_input = 1
|
||||
@ -283,11 +288,6 @@ class Board:
|
||||
return result
|
||||
|
||||
|
||||
def main():
|
||||
board = create_board_from_inputs()
|
||||
play_tic_tac_toe(board)
|
||||
|
||||
|
||||
def create_board_from_inputs():
|
||||
print(
|
||||
"\nWelcome to multidimensional Tic-Tac-Toe!\n\nThe board will contain (n+1)^n spaces for n dimensions.\nFor "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user