Closed gvsboy closed 9 years ago
The error is happening when _botTileSelection invokes rotateToTiles with an invalid tile selection. There's some faulty logic going on in bot.play(). Will go deeper.
Bot needs it's own getAttackTile method. The Player's method relies on visible sides to determine which tile is being attacked. Visible sides makes no sense in Bot logic so the Bot's getAttackTile should try both sides and choose the first valid selection.
Should be all good now!
Sometimes the bot doesn't make a move on it's turn. This tends to happen with lots of player-induced cube rotating. Figure out what the deal is.