|
|
Student Project | ||
|
| |||
| DICE DISPLAY | |||
|
|
| ||
| Ability Level: | Beginner | ||
|
|
| ||
| Estimated Time: | 1 hour | ||
|
|
| ||
| Objectives: |
| ||
|
|
| ||
| Materials and Resources: |
| ||
|
|
| ||
| Overview: | Many games depend on the roll of a pair of dice. The object of this program is to simulate the roll of dice. The program will display dice images showing the value of dice values. The project assumes standard six sided dice, but it can it be expanded to other sizes if desired. | ||
|
|
| ||
| Instructions: |
| ||
|
|
| ||
| Hints: | A completed program might look something like this:
![]() Use the Rnd function and a formula to pick a random number between one and six. Use that number to build the name of a bit map image (BMP) file and use LoadPicture to display that image in a picture box. Do this for each picture box in the form when the display dice button is clicked. PROJECT EXTRAS
| ||