Valentine Michaud: It depends on the rules and play of the game.For instance a game on a 3X3 grid, where highest card beats each card next to would be closer to a chess algorithm. For each card in hand, find the "value" of playing it in each square of the board. This can go from as basic as if you beat another card add 5 per card, up to this is the lowest card in hand, and that is just an AI that only evaluates 1 turn at a time.For a game like Spades it would consider the value of playing each of its cards based on when it came up. For instance an opening ace of hearts is nice, unless the opening was the 10 of diamonds, especially if playing the ace of hearts would be an illegal action. With bias toward getting its minimum books.So really depends just what your game is made of. If you get into games like Yu-gi-oh! It tends to be similar to the above. What is the value of playing any given card on any other, what can I do in two turns? What happens if I play this card the! n the next? So on and so forth....Show more
Nia Monopoli: I don't have either, but I do have something better. http://www.gamedev.net/forum/9-artificial-intellig...There you can discuss your theories and the specifics of your program with very knowledgeable programmers. The site also has quite a few resources on AI.The site is very active, but be aware that it is heavily moderated. Moderation is key to a productive intelligent community....Show more
No comments:
Post a Comment