Make Shogi promotion zone board-size dependent
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 4 Oct 2010 06:21:19 +0000 (08:21 +0200)
committerArun Persaud <arun@nubati.net>
Tue, 5 Oct 2010 02:34:42 +0000 (19:34 -0700)
commite1156ce1ba68e4c89a7bdb63f388840463002954
tree0983e3b584e7749da566033d93077b1ddd3e1822
parent6dc188524187b768c63f2bf3138c88fc75bc7ff8
Make Shogi promotion zone board-size dependent

In stead of using a fixed size of 3 ranks, we use BOARD_HEIGHT/3, which
would translate to 1 rank for mini-Shogi (5x5) and 2 ranks for Judgkin's
Shogi (6x6), which are indeed what these variants need.
backend.c
moves.c