Conditions of Use

Rocket Game by Grok 3 (and Jordi)

Jordi asked Grok 3 to make him a simple kamikaze rocket game like a hand guided surface to air interceptor missile. The rocket has a limited supply of fuel and has an ON/OFF thruster controlled by the space bar. It's orientation is controlled by the right and left arrow keys. It's target is a red blob (square) that shoots small black bombs (projectiles) in self defense. You win by having your rocket collide with the red blob and if you collide with a bomb instead, you lose.

So far, there are eight versions of the game:

Version 1 the original with a yellow target direction indicator

Version 2 adds a green velocity direction indicator.

Version 3 adds the speed to the velocity direction indicator and removes message conflict when game ends both ways.

Version 4 improves collision detection, eliminating tunneling of high speed intercepts.

Version 5 makes the blob a bit smarter. We asked Grok 3 to take over control of the blob, but it said it was unable other than to write a routine to increase it's evasiveness. Grok 3 named the routine "grokControlTarget".

Version 6 puts a limit on the blob's bomb supply.

Version 7 this is modified to work on desktop and on mobile devices. Doesn't work as well on mobile devices.

All versions are by Grok 3 except for the variables fuelLoad and bombLoad added by me for ease of customization.

Grok and I tried to progress beyond Version 7 but were unable to make any further progress after about six iterations so I took over the detailed code design work using Grok as a resource, picking and choosing it's suggestions and code snippets, and Grok went beyond that providing complete files none of which I used. Other times earlier I'd requested complete files but now I wanted to build my own using Grok as a tutor, advisor, etc., and that's how we came up with this:

Version 8 is now very well adapted to running on a mobile device (what I call a Universal Pocket Electronic Device, UPED) with touch screens. On a desktop it's the same game and on a UPED it has buttons to use instead of the keys and it has a nice layout, I think, in both portrait and landscape orientations. On my UPED the game area is biggest in landscape orientation when the top browser toolbar is pushed out of the way.

We might continue adding features to this game. The highest priority now would be to add a tally of wins and losses.

Feel free to make yourself a copy and make any modifications you like! If you put them online, please include a link to this page.

Conditions of Use