Mapa mental
Task 2
Contenido del mapa
Task 2
The players play 5 rounds.
Have to make sure the players are authorised.
Give them a password, or give them a set login, or check their usernames.
The dice is six sided.
The top 5 scores are stored in an external file.
1
- Make the player enter a certain password or check their name against a list.
- To get the password, the coding could be print ("Your password will be 1234") , and this would be their password.
- Or you could give them a username, so the coding would be print ("Your username is ) , and then give them a username. You could then ask them what their username is.
- Make the player enter a certain password or check their name against a list.
2
- You need to tell each player to roll the dice, and you can call each of them player one and player two. The code could be print ("Player one, it's your turn.") and then you would put random_number = random.randint (1,6). They have to roll two dice
- After they roll the dice, the code would be print("Player one rolled", ValueOne) but then you would have to define ValueOne. You could do this by putting ValueOne = randint(1,6) before that code
- You need to tell each player to roll the dice, and you can call each of them player one and player two. The code could be print ("Player one, it's your turn.") and then you would put random_number = random.randint (1,6). They have to roll two dice
Información
- Descripción
- GCSE Computing Mapa Mental sobre Task 2, creado por Aimee Godden el 19/03/2019.
- Creado por
- Aimee Godden
- Visitas
- 0
- Historial
-
- Creado por Aimee Godden · 18 mar 2019
- Copiado por Aimee Godden · 19 mar 2019
- Valoración