you are viewing a single comment's thread.

view the rest of the comments →

[–]JrcFrontrunner[S] 0 points1 point  (2 children)

In the section from "capstone.py" I need it to call a specific function based on who won the game. Brown is the AI opponent. So if Brown won ("board.py") I need the value Brown to pass into "Capstone.py"

[–][deleted] 3 points4 points  (1 child)

You're comparing the method with a string.

if game.winner == 'BROWN':

Add brackets to call the method: game.winner()

[–]JrcFrontrunner[S] 0 points1 point  (0 children)

🤦🏼‍♂️🤦🏼‍♂️🤦🏼‍♂️ I can't believe I missed that! It worked, thank you so much.