/dobutsu-shogi-master

A perfect player for Dobutsu-Shogi

Primary LanguageTypeScript

Dobutsu-Shogi master (どうぶつしょうぎ名人)

Dobutsu-Shogi is a much simpler variant of Shogi (Japanese chess), which is played on 3x4 board. See the Wikipedia article for the detail.

It is known that black (the starting player) cannot win if white plays perfectly. This is a constructive proof; Dobutsu-Shogi master is a perfect player. You can never beat it. Enjoy the helplessness!

How to build

$ make -C precomp
$ cd client
$ ruby images/setup.rb
$ npm install
$ npm run build
$ cd ..
$ open docs/index.html

Directories

  • precomp/: precompute the data base of the perfect play.
  • client/: serves a UI for browser.