Freitag Software
The Joy of Writing Software
  • Home
    • Links
  • My Software
    • JavaScript Programs >
      • Dots
      • The Code Cracker
      • The Deserted Ship
      • Flying Text
    • Java Programs >
      • Dot Animation
      • Operation Rescue >
        • Mazes for Programmers
      • Battleship!
      • Blackjack
      • Draw Poker
      • State Pattern Demo
      • Falling Blocks
    • Android Programs >
      • The Oracle
      • RPSLS
      • Gemini Falcon: Asteroid Miner
      • Gemini Falcon: All Boxed In >
        • Gemini Falcon >
          • Privacy Policy
          • A Game Oddity
      • Ay Caramba
      • Dots vs Dots
      • Ants vs Ants
    • Twine Stories
  • Random Thoughts
  • Book Reviews
  • Teaching
    • Real-Life Stories
    • Flying Text
  • About
    • Contact

The Code Cracker

This is another demonstration program I wrote while reading Game Design with HTML5 and JavaScript and it actually turned out to be quite fun to play. It's a brain teaser game that is very doable, but it isn't easy. 

The goal is to guess a random 3 digit code in a certain number of tries. If you don't guess it correctly you get one more try next time. 
Picture
This will be part of a larger game I'm thinking of writing. I can think of several uses for a keypad in games and now I already have the code! 

Being JavaScript, the code is just text and is read by and runs within a browser. Download the file and click on theCodeCracker.html run the game. Enjoy!  ​
thecodecracker.html
File Size: 9 kb
File Type: html
Download File

This website documents my love of programming.  I hope it is useful and entertaining for you to read. 
An old programmer learning new tricks... 
(c) 2017 David A. Freitag, all rights reserved.