My game works! But doesn’t.

 Nowhere done yet, but the game loop that 

  • Once Initialises game UI and sends initial prompt to remote ChatGPT 3.5 that explains its job controlling the NPCs
  • Enables controls for player to do an action
  • Processes player action
  • Creates prompt describing the situation, the last player move, the reaction of the game to last GPT move suggestion
  • Communicates with remote ChatGPT to get an action
  • Process NPC action
Works! 95% of the code is written by ChatGPT 4, and in working with it I got halfway den cent JS skills. Wouldn’t say I’m good but I understand many concepts now that I didn’t get before, particularly the “spontaneously return complex structures in a function/method”, the asynchronous stuff (basic) and the functional stuff (basic).

But GPT 3.5 IS JUST SO DAMN STUPID. I was hoping for a mode in which it replies with wrong answers, and the game updates it with “that was wrong” and the next time it gets it right. Far from it.

Will spend happy hours tuning my prompt. Probably will go for some examples with how to do it.

(And of course need to implement 80% of the actions)

But: yes, if you have overall software development skills, you can get ChatGPT 4 to more or less completely write a HTML+JavaScript app incl. installation and configuration of all required software, teaching lessons, etc. Mandatory knowledge is being able to precisely specify what the AI should do.

Kommentare

Beliebte Posts aus diesem Blog

ChatGPT as a teacher

How it started...

Pathfinding and A*