by durkes · 3y ago · 0 comments
I think it got a little confused with my last prompt: "Make both players also able to submit the input with the enter key." It correctly added the functionality, but it left it's explanation in the HTML of the page too. Still very cool. Here is the working game: https://backend-pico.onrender.com/hyundai-interface
GPT4 sometimes insists on adding commentary even though I told it to only reply with code. I need to add a regex to clean up the response and only put the code into the page. I fixed your code manually to remove the explanation.
Cost is somewhere between 1 cent to 10 cents per iteration (follow up iterations include all previous code so it's a lot of tokens).