May-03-2021, 02:45 PM
Here's one problem. On line five, the variable
row
is set as a string. On line 103, flip is called with row
as one of it’s arguments.def flip(board, row, col, player, playerOpposite): while(row<len(board)-2 or col!=0):In
flip ()
on line 293 row
is tested to be less than len(board)
producing the error:Error:TypeError: '<' not supported between instances of 'str' and 'int'
Because you're testing the string row
against the integer len(board)
.