This project implements a turn-based point guessing game on Arduino. The objective is to guess the opponent's selected pixel using hot and cold instructions faster than they find yours. The game utilizes two Arduinos connected via serial communication.
🎥 Watch the demo on YouTube.
If you want to learn other details like hardware used or other technical details, check out the report.
- Upload the files in
src/first_playerto the first Arduino. - Upload the files in
src/second_playerto the second Arduino.
To simulate the game, you can use the Wokwi simulator. Since the simulator doesn't support two physical players, one player's input can be emulated via the serial monitor.
🌐 Try the simulation on Wokwi.
Use the joystick to select a pixel. This position will be transmitted to the other Arduino through serial communication.
📷 Visit GIF: Pixel Selection
The top-right corner is represented as (0, 0), and the bottom-left corner as (7, 7). First, send the row number followed by pressing enter, then send the column number and press enter again.
📷 Visit GIF: Enter Opponent's Selection
Based on the feedback ("hot" if closer, "cold" if farther), make your next prediction.
📷 Visit GIF: Prediction
If the opponent correctly guesses your selection, send 1; otherwise, send 0 using the serial monitor.
📷 Visit GIF: Enter Opponent's Prediction
This project is licensed under the MIT License. See the LICENSE file for details.