This code aims to enhance a traditional game into an educational experience. It incorporates an LCD screen and buttons to present multiple-choice questions to players. Here's what it does:
The LCD and button pins are initialized, along with necessary libraries for communication.
Players answer questions by pressing buttons A or B.
If the answer is correct, a message appears indicating the player's progress.
If the answer is wrong, there's no progress.
After a set time, if the correct answer was given and a random number hasn't been displayed, the game moves to the next question.
If the first question is answered incorrectly and a random number hasn't been displayed, it moves to the second question, and so on.
The setup function initializes the system and displays a welcome message. The loop function continuously checks for button presses and manages game flow based on player input.
Left side
front Side
Entire game
arduino port
back side
right side