mame/dobutsu-shogi-master

A perfect player for Dobutsu-Shogi

TypeScript

82

35 commits

updated Mar 3, 2026

See the code

README

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.

Contributors

mame

25 commits

msakai

6 commits

kaorahi

2 commits

mame/dobutsu-shogi-master

A perfect player for Dobutsu-Shogi

TypeScript

82

35 commits

updated Mar 3, 2026

See the code

README

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.

Contributors

mame

25 commits

msakai

6 commits

kaorahi

2 commits

Languages

TypeScript

36.4%

Rust

31.5%

Ruby

18.9%

HTML

6.6%

SCSS

4.7%

JavaScript

1.1%