Skip to content

yunzhu-li/blupig-gomoku

Repository files navigation

blupig-gomoku

blupig

Build Status

A Gomoku (五子棋, Five in a Row) AI with a custom heuristic negamax algorithm with alpha-beta pruning and built-in rules and cut-offs, written in C++.

It provides:

  • A REST API (used by the HTML client)
  • A CLI interface
  • The stdin / stdout based protocol used in Gomocup

Currently runs single-threaded, supports only Gomoku rules, future plans:

  • MCTS with parallelization
  • Self-learning

A live demo is hosted on: https://apps.yunzhu.li/gomoku

Alt text

Run Your Own Copy

This application is available as a docker image yunzhu/blupig-gomoku.

  • Make sure you have access to docker.

  • Run:

    docker run -d --rm -p 8000:8000 -e SERVER_URI="http://<server-ip>:8000" yunzhu/gomoku
    
  • Access http://<server-ip>:8000 in your browser.

  • Play!