Skip to content

lautomator/codebreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 

Repository files navigation

Codebreaker

version 1.1

##Summary Codebreaker is a simple guessing game and can be run from a web browser. It is written in JavaScript.

##Instructions This game is based on the classic Atari 2600 game of the same title. The object of the game is for the player to guess 3 numbers between 0 and 9 in the correct order. When the player makes a guess, a flag is raised. Flags indicate one of three things:

  * = a number has been matched and is not in the correct position
  + = a number has been matched and is in the correct position
  _ = a number has not been matched.

The flag does not necessarily indicate the correct position on the readout. For example, given a solution of 123, the game play might look like this:

  346 --> _*_
  328 --> _+*
  423 --> ++_
  123 --> +++

The game ends when all of the numbers have been matched to their correct positions or 10 guesses have been taken.

##Setup This version can be run from a web browser. Download the source and open the index.html page in a browser or you can play the game here: codebreaker.

codebreaker screenshot 1

codebreaker screenshot 2

Special thanks to Sam Halperin for several code reviews and suggestions.

About

This is a simple guessing game.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors