Top Banner
GCSE Computing Working with numbers
11

GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

Dec 15, 2015

Download

Documents

Mia Starry
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

GCSE ComputingWorking with numbers

Page 2: GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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

the dice job for you.....

Page 6: GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

Random Numbers•Dim Result as integer

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

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

Page 8: GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

Combat•When there is an encounter between two

characters a battle occurs!

•the outcome is determined by the following process:

Page 9: GCSE Computing Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.

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 Working with numbers. Challenge ‘Crimson Mystical Mages’ is a fantasy role playing board game. You need to create an electronic program.