This shows the two AIs from the Ad Hoc and First Order Logic implementations. The hand is on the left and the pairset is on the right. This is an interesting test of the human experience vs. computer logic debate (see the Game Knowledge section of this website) because these two forms of AI directly represent each of these approaches. The Ad Hoc player was developed directly from human observation of the game and perception of what is a good algorithm for choosing a card to request. The First Order Logic was designed from the ground up to be a logical representation of the game and easily programmed. Although there is no clear winner here, it cannot be assumed that the two approaches are equal. Factors such as luck and implementation choices must be considered.

TODO:
1) Improve the gameOver() method. Right now, when the deck is empty, the applet just stops and displays a pair count.
2) Add the remaining rules of the game: when deck is empty, allow trading to continue AND when you successfully gain the card you requested (be it from the other player or the deck) you go again.
3) Label windows for the card display.

These are the things I know about. If you find anything else, please email me!

back