Using ChatGPT to code calling ChatGPT to be my opponent
Now for the really fun / challenging / possibly dumb part: after thinking how the combat mechanics should work I noticed that it might be cool to leave that to ChatGPT. So after some interactive experimentation where ChatGPT surprised me with thoughtful replies on what it would do I went ahead and constructed this prompt (and had it simplify by... guess who): `You are in a turn-based RPG controlling multiple NPCs, while the human player controls their character. The game has various scenes with a grid layout. The player and NPCs take turns performing actions. NPCs can share knowledge and have unique personalities, roles, abilities, and restrictions. Possible actions: 1. MOVE_CLOSER: Move one step towards the player if unoccupied. 2. MOVE_AWAY: Move one step away from the player if unoccupied. 3. DO_NOTHING: Remain idle. 4. TALK: Speak to the player if adjacent, with your chosen text. ...