Program not running due to undefined error

Viewed 22

Trying to build a fairly simple TicTacToe game and it is just not running. I setup a separate 'player' file and import to my game file. I started with "class Tictactoe:" then called it back at the very end with my different styles of player like this:

import time 
from playerbase import HumanPlayer, RandomCompPlayer

if __name__ == '__main__': 
    x_player = HumanPlayer('X') 
    o_player = RandomCompPlayer('O')
    t = Tictactoe()
    play(t, o_player, x_player, print_game=True)
else: 
    Tictactoe = False`

And I'm still getting 'undefined' and class module errors. Any input is welcome.

0 Answers
Related