# lihongxun945/gobang

javascript gobang AI，JS五子棋AI，源码+教程，基于Alpha-Beta剪枝算法（不是神经网络）

Repository: https://github.com/lihongxun945/gobang
Canonical: https://ross.abutalabs.com/products/lihongxun945-gobang
Homepage: https://gobang2.light7.cn/
Language: JavaScript
License Family: other
Topics: ai, gobang, javascript, gomoku
Last push: 2026-08-13T07:39:52+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 3870, "days_push": 20, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1801, forks 395 (observed 2026-08-28T04:05:38.033988+00:00)

## What it is
A JavaScript Gomoku (five-in-a-row) AI built on minimax search with alpha-beta pruning, iterative deepening, Zobrist hashing, and other classic game-tree optimizations—no neural networks. It ships as a playable React web app plus a step-by-step blog tutorial series teaching how to build a board-game AI from scratch.

## Use cases
- play gomoku against an AI in the browser
- learn how to build a minimax game AI with alpha-beta pruning
- study game tree search optimizations like iterative deepening and zobrist hashing
- benchmark and evaluate board game AI strength
- use as a starting point for writing your own five-in-a-row engine

## When to choose
- you want a classic search-based (non-ML) gomoku AI
- you want to learn game AI algorithms through a detailed tutorial
- you need a browser-playable gomoku game with adjustable difficulty

## When to avoid
- you need a neural-network or AlphaZero-style engine
- you need a top-tier competitive gomoku engine (Gomocup-level strength)
- you need a server-side or native desktop engine

## Facets
- artifact type: application
- maturity: active
- function: game-engine, machine-learning, developer-tools, testing
- domain: artificial-intelligence, education, gaming-tools
- platform: browser
- tags: gobang, gomoku, minimax, alpha-beta-pruning, board-game-ai, tutorial, react, game-ai, search-algorithms, zobrist-hashing, game-development, algorithms, web-server, javascript, nodejs

## Member repositories
- lihongxun945/gobang (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:38.033988+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:22:13.308193+00:00, confidence not recorded.
  - readme: https://github.com/lihongxun945/gobang (fetched 2026-08-28T04:05:38.033988+00:00, sha 7e6b20734121)
  - homepage: https://gobang2.light7.cn/ (fetched 2026-08-29T11:01:21.061814+00:00, sha e3f43543e979)
- Data as of 2026-08-30T08:39:29.467469+00:00.
