Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Discover comprehensive solutions to your questions from a wide network of experts on our user-friendly platform. Connect with a community of professionals ready to help you find accurate solutions to your questions quickly and efficiently.
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
We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Westonci.ca is your go-to source for reliable answers. Return soon for more expert insights.