Concept:
The idea is to create a “Crack The Code Safe Game.” There will be a locked mini safe box that the user will need to open by solving a simple math problem on the computer, revealing a secret 4-digit code.
This inspiration came from watching a video about a similar project: Crack The Code Safe.
Components:
- Handmade safe box:
- This box has a lock controlled by an Arduino.
- There’s a dial on the box connected to the Arduino that the user will use to enter the secret 4-digit code.
- Arduino:
- The Arduino checks if the entered code is correct.
- It manages locking and unlocking the safe.
- p5.js game interface:
- It’s a simple math game on the computer screen (p5.js). This game helps the user find the 4-digit code for the safe.
User Experience Flow:
- Introduction: The user will receive instructions on how to open the safe, both on the computer screen and the safe box. The safe will have different codes for each new game. The user will be able to restart game. But the user cannot see the correct code without at least making one attempt to open the safe.
- Gameplay: The user will start playing the game on the computer. Each correct math problem solution reveals a digit of the secret 4-digit code in order. In other words, the user will solve 4 math problems and the answer to each problem is the digits of the secret code.
- Code Entry: The user solve the math problem, get a digit, and enter it using the dial on the safe box. Turn the dial to select digits and push it to confirm each one.
- Feedback and Unlocking: The Arduino checks the entered code. If it’s right, the safe unlocks, and the user win! If not, the game starts over, and a new secret code will be created.