Settings

Theme

Show HN: Crafting a Game with ChatGPT and Overcoming Challenges

keyboard-puzzle.vercel.app

2 points by pyoner 3 years ago · 0 comments · 2 min read

Reader

Hello, guys!

I've created a game here, in collaboration with ChatGPT. AI wrote most of the code, and I just provided instructions and reported bugs, which it then fixed. Sometimes AI would hallucinate and produce nonsensical code, but a properly set prompt would correct the situation.

At times, it would forget what the last correct code was and start glitching again, so I had to resend the correct code.

At this stage, ChatGPT can replace a junior developer, but not more than that. The GPT-4 model works better and produces clean code, but access is limited - you can only send up to 25 messages within 3 hours.

So, I completed the rest of the code using GPT 3.5 Turbo and subscribed to it. I'm very pleased with the final code.

Keyboard Puzzle game!

The goal of this game is to restore the original order of the shuffled keyboard keys by swapping them with their correct positions within the time limit.

Here are the game rules:

Select a key from the shuffled keys below the main keyboard. Click on a masked key in the main keyboard to swap them. Continue swapping keys until the main keyboard is in its correct order. You have 180 seconds to complete the puzzle. Your score is based on the number of correctly placed keys. Good luck and have fun!

https://keyboard-puzzle.vercel.app/

Github code https://github.com/pyoner/keyboard-puzzle Follow me on Twitter https://twitter.com/pyoner

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection