الطلب
“Pseudocode for a 31 counting game: start with count zero, each player says one to three numbers and adds them to the count, lose when the count reaches 31, otherwise move to the next player's turn and repeat.”
جرّب إذنAdd a maximum of two numbers per turn.Add a winning message for the other player.
ما الذي يتضمنه هذا الرسم
اقرأ القرارات الكامنة وراءه.
01
Determining whose turn it is after each move
02
Checking if the count has reached 31 to declare a loser
Use this flowchart to teach beginners how to play the Baskin Robbins 31 game or as a guide for analyzing the game's strategy.