Let's Catch the Lion - Animal Shogi

Just BASIC Games
Post Reply
NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Let's Catch the Lion - Animal Shogi

Post by NJames »

Here is a game that was designed primarily to introduce Japanese children to the concepts of Shogi, which is a Chess-like game.

In this JB version, you must play both sides. The game board will be reversed after you decide to confirm your move. As far I know, it enforces the rules correctly.

The pieces can move to adjacent squares that are marked with a dot on the moving piece. When a piece is captured, the capturing player can later drop it onto any empty square. If the chick moves to the final row of the board, it is promoted to a chicken/hen. If the lion moves to the final row of the board that player wins. The other way to win is by checkmating the opposing lion.
Attachments
lion.zip
(131.24 KiB) Downloaded 763 times
NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Post by NJames »

Now with an AI eval function!

Eval v.03
Eliminated a bug in the moves function that generated bad drops.

Added a bonus to capturing moves.

Added a penalty when evaluating unprotected moves, i.e. ones that can be captured by the human with no re-capture possible.
Attachments
lioneval03bx.bas.zip
(3.88 KiB) Downloaded 648 times
NJames
Posts: 43
Joined: Tue Jul 14, 2009 2:55 pm

Post by NJames »

Improved eval() has more bug smashing and also "learns" as it plays. The learning consists of keeping a book of positions it has proven as losing. If a position appears in the lostpositions.dat file, eval() evaluates it the same as an immediate loss.
Attachments
lion.zip
(6 KiB) Downloaded 686 times
yevrowl
Posts: 2
Joined: Thu Sep 04, 2025 8:19 pm
Location: Kiev
Contact:

Re: Let's Catch the Lion - Animal Shogi

Post by yevrowl »

Nice variant of Dōbutsu shōgi, thanks a lot!
Unfortunately all the pieces are upside down and identical — how to distinguish our pieces from opponent's pieces?
Last edited by yevrowl on Thu Sep 11, 2025 9:42 am, edited 2 times in total.
÷)
Post Reply