Nine holes, par 36 and 2,990 metres, played from behind the ball with a wireframe perspective view and a plan view beside it. It is from 1983 and it is written entirely in BASIC.
Every shot goes through three chained screens, all on the same button:
PW=INT((192-PW)/9), giving 0 to 20. Behind it, line 230 takes one off and will not go below 2.The launch speed is the power times the club's factor - 250 for the driver, 85 for the putter - plus the wind's head-or-tail component. The perpendicular component is kept separately as side spin, and on every pass of the flight it bends the angle a little: that is why shots curve.
The wind is drawn once per hole (subroutine 9060): any direction from 0 to 359 and a strength from 1 to 9. Within a hole it never changes.
The flight is an ordinary projectile with gravity 9.8083 and fixed time steps of 0.4. When the height goes negative the ball bounces: it keeps 40 % of the speed and 70 % of the angle. With a launch angle under 8 - a putt or a low shot
and keeps 85 % of the speed.
The game has no terrain map: it asks the screen. Line 380 takes the ball's position over to the plan view in the right-hand panel and reads with POINT whatever colour is painted there. That colour IS the terrain:
| colour | terrain | what happens |
|---|---|---|
| 0 | rough | rough stance, no penalty |
| 1 | the hole | putting stance |
| 2 | the fairway | normal stance |
| 3 | the green | putting stance |
| 4 | water | two strokes and a drop nearby |
| 6 | out of bounds | two strokes and a drop nearby |
| 13 | a tree | slows sharply and keeps bouncing under it |
| 14 | a bunker | sand stance, and it stops dead |
When a drop is needed (subroutine 3000), the game searches in circles of growing radius - fifteen at a time, twenty-four points per turn - until it finds a valid colour.
GOTO 720, an infinite loop. The only way out is a reset.| hole | par | dist. | bunkers | water | trees |
|---|---|---|---|---|---|
| 1 | 4 | 373 m | 4 | - | 2 |
| 2 | 3 | 155 m | 2 | - | 2 |
| 3 | 4 | 332 m | 2 | yes | 1 |
| 4 | 5 | 441 m | 2 | yes | 1 |
| 5 | 4 | 376 m | 1 | yes | 1 |
| 6 | 4 | 365 m | 1 | yes | 1 |
| 7 | 4 | 328 m | 1 | yes | 2 |
| 8 | 3 | 138 m | 1 | yes | 2 |
| 9 | 5 | 482 m | 1 | yes | 2 |
Hole 2 is the only one with no fairway: tee straight to green. And holes 1 and 2 are the only ones without water. The pars add up to 36, which is the total the scoreboard writes by hand in line 7530.