


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
You will create an application that simulates a game where the player will use canon to destroy enemies’ ships
Typology: Quizzes
1 / 4
This page cannot be seen from the preview
Don't miss anything!
Here is the snapshot of two rounds of the game: Hi, Player, please let me know the size of the map: 7 Here is the map
Hi, Player, please input the position you want to drill: 2, Hi, Player, please input the depth you want to drill: 2 Whoops, we missed the diamond and the shortest distance is 0. Hi, Player, you new balance is 18.
Do you want to continue (Y) or quit (any other input) Y Here is the map
Hi, Player, please input the position you want to drill: 2, Hi, Player, please input the depth you want to drill: 2 Congrats! You found diamond with value 9. Hi, Player, you new balance is 25.
Do you want to continue (Y) or quit(999) 999