I'm new to the AI forums, and haven't posted here once. I have taken a course in data structures, and I covered a little searching and I understand A*, if you consider that AI. I'm making a puzzle game, and my AI has been pretty sad so far. Basically, the game play is a lot like tetris, except instead of making rows, the goal is to make different shapes out of triangle-shaped pieces. Basically you have a triangle like:
and the goal is to make different pieces out of the triangles like squares, pyramids, (more shapes to come), so it the pieces would look like:
______
\ /|
|\ / |
| \/ |
| /\ |
|/ \ |
/____\|
(a square)
//\\
// \\
//____\\
//\\ //\\
// \\ // \\
//____\\//____\\
(a pyramid)
Player play on a regular tetris-like area, but there is also a computer player who will challenge you. The only thing I've been able to come up with is hard-coding the AI, and it worked out pretty good for a square. But I think that hard-coding it is really a bad idea, especially because it will need to be re-implemented for every new shape.
Does anyone have any idea as to what sort of AI I should be looking into in order to solve this problem? Any help would be greatly appreciated.
[EDIT: Fixed the ASCII ART]