1 / 11

GCSE Computing

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.

Download Presentation

GCSE Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GCSE Computing • Working with numbers

  2. Challenge • ‘Crimson Mystical Mages’ is a fantasy role playing board game. • You need to create an electronic program to calculate powers for players.

  3. 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.

  4. 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

  5. Challenge • There is some help..... Visual Basic does the dice job for you.....

  6. 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......

  7. Random Numbers • Dim Result as integer • To create a number between 1 and 6.... • Result = Int((6 * Rnd) + 1)

  8. Combat • When there is an encounter between two characters a battle occurs! • the outcome is determined by the following process:

  9. 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

  10. 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.

More Related