Fluxograma
Controlled Assessment
Conteúdo do fluxograma
Output random word on screen
Player one inputs word back
Output different random word on screen
Player Two inputs word back
Choose a random number from 1-6, twice, for player 1
Choose a random number from 1-6, twice, for player 2
If number is even (2,4,6), add 10 to player score
If number is odd (1,3,5), minus 5 from player score
Create variables for both players score
that cannot go below 0
Double roll = 1 extra roll and score added
Loop this 5 times (5 rounds), counting the score of each player after each round.
If it ends in a draw, add an extra round to ensure a winner.
Output the winner
Rewrite the leaderboard using a name of the users choice if the winners score is in the top 5.
Read the leaderboard
Output asking for Player 1 to enter a
username.
Player 1 inputs username.
Output asking for Player 2 to enter a
username
Player 2 inputs username
Informações
- Descrição
- Fluxograma sobre Controlled Assessment , criado por Finton Wyatt em 10-09-2019.
- Criado por
- Finton Wyatt
- Visualizações
- 0
- Avaliação