The video below gives a brief rundown of how the game's played, so hopefully you can get a feel for what it's like in action.
Guess who's been making A.I.!
Since my last post I've been putting a lot of work into the AI and then user interface. I've had a lot of fun doing the AI in particular - there's something oddly delightful of coding a game and watching it play by itself. I coded AI for Greedy Bankers vs The World, and it's fascinating how different the two implementations are.
|A pair of viable moves in Greedy Bankers - this will make the 2x2 purple gem grow to 3x2|
|The green player aims to be behind the ball so that it has a clear shot at the goal. The text and coloured icons help me see what each player's AI is trying to do. In this case, green means "attack" and yellow means "defend"|
|Propelling the player through the ball will cause an own-goal, so it needs to find its way around the outside|
A point of note is that I never studied AI at university (I was a Maths student!), or indeed read up on it before attempting coding these systems. If your game is based around new or unusual mechanics the chances are there's not solutions up online for you to read from - don't let that put you off if you want AI in your own game. Think through how you play your own game and divide it up into each little decision you make. Build each of these decisions into the AI one by one, and any sticky areas will make themselves obvious as it comes to life.
Trust me - you'll be glad you gave it a shot!