I built a playable Omok game with one sentence
I asked, “Make an Omok game as a web page,” and got a game I could play in my browser. This time, the result even included a computer opponent, so I could play alone.
In this article, I’ll walk through installing Claude Code, building an Omok game with one sentence, making a change, and continuing the work the next day.
Before you start: your computer and subscription
Before installing, check that your computer and Claude account are ready. You’ll need macOS 13.0 or later on a Mac, or Windows 10 version 1809 or later on Windows. Your computer also needs at least 4 GB of memory.
Claude Code isn’t included in Claude’s free plan. You’ll need a Pro, Max, Ultra, Team, or Enterprise subscription. At the time of writing, the monthly prices are $20 for Pro, $100 for Max, and $200 for Ultra.
In my opinion, Pro may be enough to get started. You don’t have to choose a higher-priced plan. Prices and usage limits may change, so check the official information before paying.
What is a terminal?
A terminal is a window where you give your computer commands by typing. Enter a command and press Enter to run it. It may look unfamiliar at first, but you’ll only need to type a few commands for this walkthrough.
Claude Code is also available in a desktop app, but this article uses the terminal. The terminal also supports an “agent team” feature, where multiple AIs work together and one AI directs the work. I mostly use Claude Code in the terminal, but that’s simply my preference and convenience.
Install from the official guide
The installation process depends on your operating system, so visit the official guide and follow the instructions for your computer. Use the steps provided there rather than entering a separate installation command.
Official terminal guide: https://code.claude.com/docs/en/terminal-guide
After installation, open a new terminal or PowerShell window and use this command to check that Claude Code is installed:
claude --version If the version number is followed by (Claude Code), it’s installed. If you get an error saying Claude can’t be found, close the terminal window completely, open a new one, and check again.
Now start Claude Code:
claude The first time you run it, you’ll be asked to sign in to your Claude account. When a browser opens, sign in with the subscription account you’ll use for Claude Code. If you’re asked to approve something, read the details and then continue. Once you’re signed in, return to the terminal.
Create a project folder and start Claude Code
A folder is a place to keep files together. To reduce the risk of accidentally changing other files, create a new, empty folder on your desktop. Right-click an empty area of the desktop, choose New Folder, and name it omok.
Return to the terminal, type cd, and add a space after it. cd changes your working location. Don’t press Enter yet. Drag the omok folder from your desktop into the terminal window. Once the folder location appears as text, press Enter.
cd The terminal is now ready to work inside the omok folder. Start Claude Code there:
claude The first time you run it in this folder, you may see a prompt asking whether you trust the folder. That’s normal. Check that it’s the folder you created, then choose to trust it and continue.
Build Omok with one sentence
Omok is Gomoku: a game where the first player to connect five stones of the same color horizontally, vertically, or diagonally wins. Let’s ask Claude Code:
Make an Omok game as a web page This time, I didn’t add detailed rules or instructions on how to build it, but Claude Code created an index.html file. Double-click the file to run the game.
This result also included a computer opponent, so I could play alone. But a short request won’t always produce the same result. Sometimes you may get a game where one person takes turns playing both black and white. The AI decides details you haven’t specified, so describe what you want if you have a particular result in mind. And make sure to check that the game works the way you want.
Fix one thing that could be better
One thing I wanted to improve in the first version was the lack of a sound effect when placing a stone. Rather than asking for several changes at once, I’ll make one specific request:
Add a sound effect when placing a stone After the change, open the game in your browser again and check it. Try playing the game yourself, and if something could be better, choose one thing to fix. Even when Claude says it’s finished, the work isn’t done until you’ve checked it yourself.
Continue working the next day
Your files stay in the folder even if you stop working or close the terminal. To continue the next day, go to the same omok folder and start Claude Code there. As before, type cd, add a space, drag the folder into the terminal, and press Enter.
To reopen your most recent conversation in that folder, use:
claude -c If you want to choose a conversation from a list, enter /resume inside Claude Code.
Commands you may use often
| Command | What it does |
|---|---|
/clear | Starts a new conversation. |
/exit or exit | Exits Claude Code. |
Esc | Stops Claude while it’s working. |
/usage | Shows your usage. |
/help | Opens the help information. |
/copy | Copies Claude’s response. |
/copy 2 | Copies the second most recent response. |
/export <file name> | Saves the current conversation to a file. |
/login | Signs in again. |
/logout | Signs out. |
Check your usage limits
The amount you can use Claude Code depends on your subscription plan. There are usage limits over five-hour and weekly periods. The five-hour limit resets five hours after you send your first message. Claude chat and Claude Code draw from the same usage limits.
You can also check your current usage on the web by opening the usage menu in your profile. Max provides more usage than Pro, and Ultra has no five-hour limit for verified accounts. Prices and limits may change, so check the official information before paying.
What to do if you get stuck
If you run into an error while installing or building your program, copy the error message exactly. If you can’t start Claude Code yet, you can paste it into a claude.ai chat and ask for help. Include what you were doing when the problem happened and what you’ve already tried. That context can help identify the problem and find a solution.
The important thing isn’t just that Claude created a file. It’s the process of running it yourself, finding something you want to improve, changing it, and checking it again. Here’s a simple plan to get started:
- Check whether Claude Code is installed.
- In the
omokfolder, ask Claude to make an Omok game with one sentence. - Run it yourself and fix one thing you’d like to improve.
- Continue working the next day with
claude -c.
What would you want to check first in the Omok game you made?
▶ Turn on English subtitles (CC) to watch
This article summarizes my Korean YouTube video (English subtitles available) and was translated with AI. #ABotWroteThis










