Taking a chance Chance your luck at dice throwing with your CPC 464 by Bill Simister You have got into a game of throwing dice with your new Amstrad computer. An interested passerby peers over the wall at each of the throws. This program is simple, but shows how easy it is to make UDGs on the Amstrad. It also serves to show how to produce random results very easily, and gives a simple routine for the use of inputs. Program Notes - 10-70 Sets the colours, and introduces Gosub routines.
- 100-350 Throws the dice (randomly) at one side.
- 360-870 Converts the dice back to numbers for scoring, and prints them.
- 580-640 Plays a tune; prints the score; and changes the dice-throwing location, as well as the passerby.
- 1300-1380 Throws the second set of dice (randomly) at the other side.
- 1360-1570 Converts the dice back to numbers, and prints them.
- 1580-1640 Plays a tune; prints the score; and decides who is the winner.
- 2000-2040 Offers another game, and rearranges the seen for the next game.
- 4000-4160 Produces the screen lay-out.
- 5000-5150 Produces the characters.
PopularComputingWeekly850117 |