In this Design Exercise, you will create a connected version of Bop-It, the wildly popular game where you are given a cue as to what to do and you must do it in a certain amount of time. This design exercise is based on an idea by Mark Chounlakone. Thanks, Mark. From all of us.
Your game is initiated with a button press. In your game, your ESP32's LCD should randomly show an icon/message indicating one of a number of actions:
For the Gyroscope to work, you need to update your ESP32 MPU9255 IMU library to THIS
The user must perform that action within an allotted time. If the correct action (and only the correct action) is carried out, then another icon shows up and the process repeats.
As the game progresses, the amount of time that the player has to make the correct shout/bop/tilt/spin should decrease, making the game harder. Because this will be an Internet-connected game, we suggest the following specs in case we want to compare data later. We suggest:
After a player fails to make the correct motion in the allotted time, their game is over, and their score is the number of correct bops/shouts/tilts/spins. In order to know who is the best Bop-It-er, your ESP32 should then upload the player's kerberos and score to the server to be stored in a database table which you need to manage and create. PLEASE ADHERE TO THIS TABLE STRUCTURE!
ID- auto-generated integer that increments with each new record
time- auto-generated timestamp of when the score is submitted
kerberos- A string holding the player's kerberos
intholding the # of correct bop-it moves
When not playing, your ESP32 should display a leaderboard of the top past scores and when those scores were obtains. List at least the top 2 scores, though more is better.
Upload a video of your system working, as well as all of your code and any necessary comments below.
Error on line 2 of python tag (line 61 of file /S19/ex07/bopit): kerberos = cs_user_info['username'] KeyError: 'username'
SUBMIT ALL YOUR CODE AS A ZIP FILE BELOW (DOUBLE CHECK THAT YOU HAVE ZIPPED IT CORRECTLY). YOU WILL LOSE POINTS IF ALL FILES ARE NOT PRESENT!
\ / /\__/\ \__=( o_O )= (__________) |_ |_ |_ |_Course Site powered by CAT-SOOP 14.0.4.dev5.