Artificial Intelligence designed to make the optimal move in the Sevens card game.
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Card.java
GameState.java
Hand.java
README.md
SevensCardGame.java
Strategy.java
input.txt
move.txt

README.md

sevens-ai

Artificial Intelligence designed to make the optimal move in the Sevens card game.

Contest link here: http://news.dice.com/2013/12/18/coding-challenge-best-card-sleave/ Game Description here: http://en.wikipedia.org/wiki/Sevens_%28card_game%29

The strategy is to get rid of the highest and lowest card in hand if possible. If not, then remove the next highest and lowest card if possible. The program works by reading the game state from input.txt, thinking about the best move, then outputting its choice in move.txt.

Check out SevenCardsGame, the main program, for more information.