hugosaintemarie / magic-maze

Online version of board game "Magic Maze"
https://magicmaze.herokuapp.com
MIT License
20 stars 11 forks source link

AI can walk through walls #19

Open sampie777 opened 3 years ago

sampie777 commented 3 years ago

When playing with bots, the AI sometimes doesn't see the wall between two tiles. This results in the AI waiting for the player to move through that wall (which is impossible for the player) or the AI moving through that wall. See the image attached for the described situation. In this image the AI will think there is a valid crossing between the lower and the upper tile.

Screenshot from 2020-12-04 14-39-23

Not that important, but when this happens the player can get stuck in the game when only playing with bots, as the bots won't let the player take another route.

hugosaintemarie commented 3 years ago

Thank you for the report @sampie777, I had experienced that issue as well but haven't yet found time to tackle it.

Either this comes from AI's pathfinding system, or there's something wrong with some tiles' data representation (see temp.md).

Will definitely have a look 👌

sampie777 commented 3 years ago

Understood, I know the game is under development, but just wanted to point this bug out in case you haven't discovered it.