alainrinder / quoridor.py

A python version of strategy board game "Quoridor", with AI and a graphic interface.
MIT License
14 stars 11 forks source link

Error occurs when blocking the endzone completely (which should not be allowed) #2

Open nedtheant opened 4 years ago

nedtheant commented 4 years ago

Error: Traceback (most recent call last): File "main.py", line 99, in <module> main() File "main.py", line 91, in main game.start(rounds) File "C:\...\quoridor.py-master\src\Game.py", line 95, in start action = player.play(self.board) File "C:\...\quoridor.py-master\src\player\BuildAndRunBot.py", line 23, in play fencePlacingImpacts = self.computeFencePlacingImpacts(board) File "C:\...\quoridor.py-master\src\player\BuilderBot.py", line 29, in computeFencePlacingImpacts for playerName in impact: TypeError: 'NoneType' object is not iterable