+ All Categories
Home > Documents > GCSE Computing

GCSE Computing

Date post: 02-Jan-2016
Category:
Upload: martin-blake
View: 24 times
Download: 1 times
Share this document with a friend
Description:
GCSE Computing. Working with numbers. Challenge. ‘ Crimson Mystical Mages ’ is a fantasy role playing board game. You need to create an electronic program to calculate powers for players. Challenge. A player gets powers by rolling two dice. - PowerPoint PPT Presentation
Popular Tags:
11
GCSE Computing Working with numbers
Transcript
Page 1: GCSE Computing

GCSE ComputingWorking with numbers

Page 2: GCSE Computing

Challenge•‘Crimson Mystical Mages’ is a fantasy

role playing board game.

•You need to create an electronic program to calculate powers for players.

Page 3: GCSE Computing

Challenge•A player gets powers by rolling two dice.

•1 is a 4 sided dice, the other is a 12 sided dice.

•The person’s power is the score of the 12 sided dice divided by the score on the 4 sided dice PLUS 10.

Page 4: GCSE Computing

Challenge•You need to create a program which

calculates a person’s power score

•It must simulate the throwing of both dice

•Then calculate the score and tell the player

Page 5: GCSE Computing

Challenge•There is some help..... Visual Basic does

the dice job for you.....

Page 6: GCSE Computing

Random Numbers•RND is a function in visual basic

•It randomly generates a number greater than 0 but smaller than 1

•e.g. 0.2, 0.91, 0.456, 0.01......

Page 7: GCSE Computing

Random Numbers•Dim Result as integer

•To create a number between 1 and 6....

•Result = Int((6 * Rnd) + 1)

Page 8: GCSE Computing

Combat•When there is an encounter between two

characters a battle occurs!

•the outcome is determined by the following process:

Page 9: GCSE Computing

Combat•The differences between the power score

for the two characters is calculated

•This difference is divided by 2 and then rounded down to create a ‘strength modifier’

•Then each player rolls a 6 sided dice

Page 10: GCSE Computing

Combat•Whoever has the highest score gets the

strength score added to their power score.

•The loser gets the strength score subtracted from their power score.

Page 11: GCSE Computing

Recommended