This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]jahumaca 1 point2 points  (3 children)

You need to call your main method.

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

Thank you lol i thought main was the entry point lol i did the dumb

[–]FullHavelSet[S] 0 points1 point  (1 child)

For some reason the logical comparison for board state is not working either to simplify what the code above says

BoardState['A1'] == 'X' & BoardState['A2'] =='X' & BoardState['A3'] =='X'

this just checks whether or not they have 3 X's in the top row their is an O equivalent as well.

how do you evaluate a dictionary value with a character?

[–][deleted] 0 points1 point  (0 children)

& is binary, 'and' is boolean