I'm making a game similar to columns with 1 and 2 player modes. I'm about to start the AI code for a computer controlled opponent but I have no idea where to start with it? How can I program the AI to make intelligent decisions about where to drop blocks?
Any advice and/or example code snippets would be much appreciated :)
Thanks for the links :)
I've only just had the time to look at these. It only took about half an hour to add the AI, just need to add in some rotation and it's finished already.
Well done! :o)
Which did you think helped the most?
It was the gamedev topic that helped me the most :)
I'm just finding the edges for each square and getting the height of each stack to tell where to drop the next block. I'm using 2 arrays, 1 for the blocks already placed on the board and another contains the edge/height values. The AI player just moves left and right to the right column and drops the block. Rotating the block to use the other end or sideways is a bit trickier tho LOL