Discover answers to your questions with Westonci.ca, the leading Q&A platform that connects you with knowledgeable experts. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
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 platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. Get the answers you need at Westonci.ca. Stay informed by returning for our latest expert advice.