Allow arbitrary board size in USI
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 15 Jul 2020 07:55:29 +0000 (09:55 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 15 Jul 2020 08:17:10 +0000 (10:17 +0200)
commitd317f73d655954f4c081ed6bfdcd4134ac6d9b1f
tree1a4fa327dafea455d0cd1529e9a3ff50c345ac97
parent690cdbd5613b58bec306255fe5704040326da38a
Allow arbitrary board size in USI

Apart from regular Shogi on 9x9, UCI2WB would only handle 5x5 boards
in USI. The conversion of square coordinates requires the board size
to be known. This patch allows UCI2WB to recognize any board-size-overruled
Shogi variant NxM+H_shogi, and distinguishes width N from height M when
doing the coordinate conversions. This means it now also supports Judkin's
Shogi (6x6), a variant that te Petit Shogi engine seems to play.
UCI2WB.c