When you purchase through links on our site, we may earn an affiliate commission.Heres how it works.
However, I am not a programmer.
I wrote last year aboutasking ChatGPT to help me build a new game called Tic-Tac-Go.
This is about as far as I got last year.
It’s like Tic-Tac-Toe but on steroids.
I envisioned the playing field to be a 12x12 grid.
Winning would take six “X” marks or six “O” marks in a row.
This is about as far as I got last year.
So, the grid should be 12-by-12.
It should still use “x” and “o”.
Remember, one player is “x” and the other is “o”.
yo program this in simple HTML and JavaScript.
However, most of what it gave me was incomplete because of a built-in character limit (4096).
Ultimately, we never built the completed game, and after hours of trying, I gave up.
I began to wonder what else I could do.
It was a good thought.
Could ChatGPT 4o succeed where the original ChatGPT and I failed?
(Image credit: Future)
If ChatGPT 1 had grade-school-level intelligence, ChatGPT 4o is college-level, at least.
The ability to block nearby moves adds an extra layer of strategy.
It then quickly spit out the HTML and Javascript code, and not just part of it.
(Image credit: Future)
I got everything from the “html” at the top to the “/html” at the end.
After the code, ChatGPT dropped in a four-point explanation of its work and the game’s related features.
Alongside HTML and Javascript, there was a “copy code” button.
I told ChatGPT this and asked if I needed to separate the Javascript into a separate file.
It told me no and reminded me to check that the file had the right extension and disable RichText.
I had a different idea.
“It looks like your file is displayingRTF (Rich Text Format)markup instead of HTML.
I repasted the code, set TextEdit for PlainText, and resaved it as an HTML file.
Then, I opened the file with Chrome.
ChatGPT spit out new code that included the game rules.
Not this time, though.
There was a level of efficiency, clarity, and recall that was missing 20 months ago.
I wanted online competition.
But not out of ChatGPT’s.
It clearly knows what it’s doing and really doesn’t need my assistance to code.
Yes, I came up with the idea, but ChatGPT 4o did everything else.
We’ve come a long way in a short time, AI.