From 47ea3aa9219b60cc66fc65f445fb25aeb508e241 Mon Sep 17 00:00:00 2001 From: neogeek23 Date: Wed, 17 May 2017 08:50:24 -0500 Subject: [PATCH] Add files via upload moved def main to top --- tictactoe.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tictactoe.py b/tictactoe.py index 9e526f7..334e3ed 100644 --- a/tictactoe.py +++ b/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 "