Question
Using a DS4 controller as input. Write a game in c programming language with the output: Round with wrong button pressed: This is a Bop-It
Using a DS4 controller as input.
Write a game in c programming language with the output:
Round with wrong button pressed:
This is a Bop-It Game!
Please press the Circle Button to begin!
Press the triangle button!
You have 2500 milliseconds to respond!
Press the triangle button!
You have 2400 milliseconds to respond!
Press the square button!
You have 2300 milliseconds to respond!
Press the cross button!
You have 2200 milliseconds to respond!
Press the circle button!
You have 2100 milliseconds to respond!
Press the triangle button!
You have 2000 milliseconds to respond!
Press the square button!
You have 1900 milliseconds to respond!
Press the circle button!
You have 1800 milliseconds to respond!
Wrong button!
You lose!
You made it through 7 rounds!
Round with a timeout:
This is a Bop-It Game!
Please press the Circle Button to begin!
Press the cross button!
You have 2500 milliseconds to respond!
Press the triangle button!
You have 2400 milliseconds to respond!
Press the cross button!
You have 2300 milliseconds to respond!
Press the circle button!
You have 2200 milliseconds to respond!
Press the cross button!
You have 2100 milliseconds to respond!
Press the square button!
You have 2000 milliseconds to respond!
Press the square button!
You have 1900 milliseconds to respond!
Press the square button!
You have 1800 milliseconds to respond!
Press the circle button!
You have 1700 milliseconds to respond!
Press the triangle button!
You have 1600 milliseconds to respond!
Press the cross button!
You have 1500 milliseconds to respond!
Press the cross button!
You have 1400 milliseconds to respond!
Press the square button!
You have 1300 milliseconds to respond!
Press the cross button!
You have 1200 milliseconds to respond!
Press the square button!
You have 1100 milliseconds to respond!
Press the cross button!
You have 1000 milliseconds to respond!
Thanks for playing!
You made it through 15 rounds!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started