The following article was printed in November 1989 of the magazine „8000 PLUS".
The Boule game as BASIC program

FRENCH

BOWLS

By Noweed Mubarak

For the cold winter nights, a summer game to refresh the memory.
What with the proximity of 1992 and all that we felt it was about time to go continental. As if by telepathy Noweed Mubarak came forward with this stab at French bowls or Boules as it is known abroad. The listing is short, to the point and one of the simplest yet possibly most addictive we've seen in some time.
The idea of the game is to throw a ball at an angle of between 20 and 90 degrees. Your computer arm is given a power rating or between 1 and 10. If you decide to change the the angle after inputting it merely enter a power greater than 10. Both choices are then reset to zero and you start again. Points out of ten are scored depending upon how close you get your bowl to the jack.
You have five attempts to hit your target. At the end of each 'session' a percentage and points rating is given. The author assures us that a 100% score is possible. With each new game the jack is placed at a different distance from the player. The rest is up to your skill and judgement.
Because of the brevity of the listing, we prefer them that way as it happens, quite a few additions can be made in order to spruce it up. For example, as soon as you finish one round of five balls the program ends and you are forced to type RUN for a new game. The addition of an option to continue might be of help. If you wanted to be really clever you might like to add wind speed and direction effects or the brave among you could even program a slope on the playing area.
Aside from these suggestions French Boules is an shining example of the enjoyment which can be achieved with just a very few lines of Basic and a PCW.
Each or Ihe graphics characters are defined; for example the player's bowl is CHR$(27)+CHR$(1) in line 20.
The user defined function FNat$ is put to good use in setting up the playing area. You are asked for the details of your throw.
The trajectory of the bowl is calculated in line 150 and you get to see just how close you got.
[BASIC listing with corrected line 30]

HTML customization by Werner Cirsovius
December 2014
© 8000 PLUS