Generic code guessing game

Generic code guessing game

This project was made as an exercise in dynamic HTML manipulation. It’s a clone of a classic code guessing game where the player plays against the computer.

Links

Live page
GitHub repository

Overview

The user has to guess the code and gets a score in the form of \(S=10A+B\) where \(A\) is the number of correct guesses in the correct place and \(B\) is the number of correct guesses in the wrong place.

Challenges

Challenge: The number of rows and columns must match the user input and be maintained correctly..
Solution: This was the main purpose of the project, to investigate the safest and most performant way to achieve this. It’s mostly a matter of bookkeeping once it was achieved it made many future projects much easier. (Resolved)

Sample screenshot

Generic code guessing game
Generic code guessing game

Leave a Reply

Your email address will not be published. Required fields are marked *