Welcome to Codebreaker

Codebreaker is a simple game. You have ten tries to guess the four-letter code generated by the computer. Give it a try.

Instructions

Playing the game is easy. The computer generates a random four-character code using the letters ABCDEF. Letters can be repeated (AAAA is a valid code). You have ten tries to guess the code.

After each try, the computer will give you feedback in the form of two values: X and N. The X count indicates how many characters are the correct letter and the correct location. The N count indicates how many charaters are the correct letter, but the wrong location. For example if the computer code is ABCD and you guess ACDF then the computer will reply with X=1 and N=2.

You win if you can reach X=4 in ten moves or less. Scores are awarded based on the least number of moves. If you guess in the first move, you are awarded 100 points for that game. If you guess in ten moves, you are awarded ten points. If you fail to guess the correct code in ten moves, the game is over and you are awarded no points.

Your past games are kept on file and your overall statistics are calculated as you continue to play.

Have fun and good luck as a codebreaker!

Go to your game page .

Your Game Page

This is your private game page. It shows your personal game stats and all the games you've played here. We'll keep these games on file for you for up to thirty days.

To start a new game, click on the "New Game" button or select an existing game in progress from your list of past games.

About Codebreaker

Codebreaker comes from a line of similar analog games. If you like Codebreaker, you'll probably also like Mastermind and Bull and Cows.

For Code Geeks

This simple Web game was built as a demonstration of the exyus web engine. In geek-speak, exyus is a REST-compliant HTTP engine built using C# that runs on the Windows/IIS platform.

If you're interested, you can view the source code for this web version of the game. Most of it is written using XML/XSL and T-SQL. There is also a chunk of C# to glue it all together. The entire source code for the exyus web engine as well as the code for this game is available on the exyus @ googlecode site.