Reading List

Some Toaster AI improvements from Liza Shulyayeva RSS feed.

Some Toaster AI improvements

I made some more improvements to Toaster yesterday and this morning. Specifically:

Have Toaster look for an enemy tile to place Grenades on

Before, Toaster looked for an empty space on the grid to place whatever tile it was holding. Now, if that tile is a grenade, it looks for an enemy tile to place it on. If it can’t find one, it picks another tile from its queue instead because placing grenades on empty grid spaces is pointless. Right now this will break the game if all three tiles in Toaster’s queue are grenades (because it’ll keep trying them one after the other indefinitely, never actually making a move) and that’s something I’ll be fixing today.