Fluxograma
dice game flowchart
Conteúdo do fluxograma
start
input name of player 1
input name of player 2
player 2 score = 0
generate a random number between 1 and 6 for each player
output numbers
calculate scores
have you added 5 numbers to each players total
add player scores to their total
yes
no
do both players have the same score?
no
yes
roll a dice for each of the players
and add those to each of the players scores
whichever player has the highest score print player name is the winner
end
INPUT = player1
player 1 score = 0
INPUT = player2
Informações
- Descrição
- Fluxograma sobre dice game flowchart, criado por Torben Walsh em 06-10-2021.
- Criado por
- Torben Walsh
- Visualizações
- 1
- Avaliação