Mini Shogi: drops, promotion and why our first player gave away its rook
Five by five, six kinds of piece each, and every piece you capture comes back to your side as a drop. Our own search beat EASY in 5 moves and NORMAL in 24, and lost all three games against HARD, checkmated after our 8th move each time. Our first version was much worse; why is the most useful lesson here.
The rules on this board
Each side has a King, Gold, Silver, Bishop, Rook and Pawn. Checkmate the rival King to win; having no legal move also loses.
A captured piece changes sides and waits in your tray. On your turn you may drop it on any empty square instead of moving.
Drop limits: no pawn on the last row, no second pawn of yours in the same file, and no pawn drop that gives checkmate.
Reaching the far row promotes a Silver, Bishop, Rook or Pawn; a pawn on the last row must promote. A captured piece loses its promotion.
The same position four times, or 300 moves in all, is a draw. The tray glows when a drop from it would give check, for both sides.
Against NORMAL after our 10th move: our pawn has reached the second row; the rival's tray (top) holds a silver, ours (bottom) is empty.
The three rivals
HINT shows a move from the game's own search at the NORMAL depth and UNDO takes back your last move; we used neither.
EASY looks one move ahead, with noise.
NORMAL looks three moves ahead and then follows captures to the end.
HARD deepens to four or five moves, then follows captures.
EASY: CHECKMATE!, won in 5 moves.
EASY and NORMAL beaten, HARD mated us at move 16 three times
Our search ran 2.5 seconds a move and reached 4 to 7 moves deep, deeper than NORMAL, yet HARD mated it the same way in all three games. Its evaluation counts pieces well and the king's safety better than ours, and in this small board an exposed king is mated quickly by drops.
Rival
Result
Length
EASY
won
5 moves (11 in all)
NORMAL
won
24 moves (49 in all)
HARD, 3 games
lost all three
checkmated at move 16 in all, each time
NORMAL: CHECKMATE!, won in 24 moves.
What our first version got wrong
Stopping the search in the middle of an exchange. Our first player stopped looking at a fixed depth, so a capture at the last step looked free: in our tests from the opening position it chose to take the pawn next to the rival King with its rook, which loses the rook at once. Following captures to the end fixed that.
Ignoring checks at the end of a line. A position where your King is in check is not quiet; look one move further.
Counting only material. Even after the fixes, our player lost to HARD by walking into a mating net. Keep defenders next to your King, and count the pieces in the rival's tray: each one can be dropped next to your King.
Against HARD: CHECKMATED. Our King is boxed in by drops.
Alpha-beta for 2.5 seconds a move
Our own player used the game's move rules (legal moves, drops, promotion, check), loaded from the page's own script, and its own search: alpha-beta, deepening until 2.5 seconds, captures followed to the end, check positions searched one move deeper, and an evaluation by material only (pawn 1, silver 5, gold 6, bishop 8, rook 10, promoted pieces 6 to 14, tray pieces 10 % more). It did not use the game's HINT or its rivals' search. The first version, without the capture search, lost to NORMAL and HARD.
Questions
Why can't I drop a pawn here?
Either you already have an unpromoted pawn in that file, it is the last row, or the drop would give checkmate. All three are against the rules.
Should I always promote?
Usually, but a Silver keeps its backward diagonal moves when not promoted. A pawn reaching the last row must promote.
What does the glowing tray mean?
A drop from it would give check right now. Watch the rival's tray too: it shows the drops that threaten your King.