A lightweight browser-based Gomoku game with a simple robot opponent.
- Local file: open
index.htmlin your browser - Local server:
python3 -m http.serverThen visit http://localhost:8000.
- GitHub Pages:
- Intended URL:
https://nealyip.github.io/gomoku/ - If the page is not live yet, enable it in repository
Settings -> Pageswith:- Source:
Deploy from a branch - Branch:
main - Folder:
/ (root)
- Source:
- Intended URL:
- 15 x 15 Gomoku board
- Human vs robot gameplay
- Win detection for five in a row
- Simple attack-and-defend robot scoring
- Move counter
- Restart button
- Last robot move highlight toggle
- Mobile-friendly layout
- You play black and move first.
- Click any empty intersection to place a stone.
- The robot responds automatically.
- Connect five stones in a row to win.
index.html- page structurestyle.css- visual design and responsive layoutscript.js- game rules, rendering, and robot logic
- Vanilla HTML
- Vanilla CSS
- Vanilla JavaScript