Looking for trustworthy answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.
Sagot :
Answer:
algorithm should:
--Alternate between player 1 and player 2
--Ask the player how many numbers they would like to choose, ensuring that this is between 1 and 3
An algorithm using pseudocode that allows two players to play the game is:
- BEGIN Player One num "1"
- ASCENDING order num;
- TURN Player One num;
- TURN Player Two num;
- INCREMENT
- IF there is num "15"
- THEN
- PLAYER loses
What is a Pseudocode?
This refers to the use of plain language to describe the sequence of steps for solving a problem.
Hence, we can see that from the given game rules about the input that is made by a player where he starts at 1 and any player that selects 15 loses the game and there is an increment is displayed in a rough form above.
Read more about pseudocodes here:
https://brainly.com/question/24953880
#SPJ2
Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Thank you for using Westonci.ca. Come back for more in-depth answers to all your queries.