Try to write another game by ChatGPT 4.0

2 min readMar 16, 2023

Researcher: {Alan Ho}

ChatGPT took a couple of rounds to complete a simple tic-tac-toe game last time.

This time I tried to create a Horses Racing Simulation Game with ChatGPT 4.0 model.

The prompt I provided:

please write a horse racing betting simulation game in html and javascript in one file, using emoji and ascii to represent the horse and track, there are 4 horses in game, randomly generate a horse name for each of them, odds will be randomly generated for each game, you can use bootstrap and jquery too

As expected, due to character limit, it could not write full codes. This time it’s much smarter and continue the code properly.

So at the first attempt, other than some CSS issues, it already generated the game properly. So I asked it to fix the CSS issues.

And some modification on horse names display.

The game now is good to go. (

With precise instructions, seems that this version will produce the program more properly with less logical flaws. And it can continue writing the correct source code instead of generating from the beginning again or continuing with some unrelated responses.

Our team will keep trying with some more complicated applications, see how it goes. :)




VXRL Team is founded by group of enthusiastic security researchers, providing information security services and contribute to the community.