Aug-16-2019, 11:46 AM
You are returning a tuple from is_valid_location() and comparing to a Boolean (True). Debug this by putting a print(invalid) after line 25 and correct function call and function until you get the behavior you want.
@perfringo and anyone else not familiar with the game - sold by Hasbro as Connect 4. Vertical board with 4 channels, players take turns dropping disks (checkers) down the channels. Disc automatically falls to the lowest available position. 4 in a row either across, vertical, or diagonal wins. Tic-tac-toe made non-trivial.
@perfringo and anyone else not familiar with the game - sold by Hasbro as Connect 4. Vertical board with 4 channels, players take turns dropping disks (checkers) down the channels. Disc automatically falls to the lowest available position. 4 in a row either across, vertical, or diagonal wins. Tic-tac-toe made non-trivial.