gvsboy / ghostcube

Just having some spectral fun.
1 stars 0 forks source link

Bot Freeze #13

Closed gvsboy closed 9 years ago

gvsboy commented 9 years ago

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.

gvsboy commented 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.

gvsboy commented 9 years ago

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.

gvsboy commented 9 years ago

Should be all good now!