Version 1.0:
Simulate this window in JavaScript using alert()
- only 1 hole to play
- distance of hole is random between 80m and 120m
- i can hit the ball anywhere between 15m and 35m
- if the shot is under 15m, i will make it automatically
Version 2.0:
Simulate this window in JavaScript using alert()
and prompt()
- added random par between 3 and 5
- added shot counter
- added play again
- added rating:
Score under / over par |
Rating |
-3 |
ALBATROSS |
-2 |
EAGLE |
-1 |
BIRDIE |
0 |
PAR |
+1 |
BOGEY |
+2 |
DOUBLE BOGEY |
+3 |
TRIPLE BOGEY |
Version 3.0:
Simulate this window in JavaScript using alert()
and prompt()
- added CPU player, who can hit the ball anywhere between 5m and 50m
- both players P1 and CPU can compete for hole win or lowest score
- added random number of holes played - either 2 or 3
- added cumulative game stat tracking (e.g. longest hit)