Mak-yek
Play Mak-yek, Thailand's game of 16 men a side: slide like a rook, squeeze single enemy men, or slip between two to take both. Vs computer or friend.
How to play
- Each player has 16 men on the first and third rows of their side; the second row starts empty. White moves first.
- On your turn, slide one man any number of empty squares across or down, like a rook in chess. Men never jump.
- Squeeze (custodian capture): if your man lands so that a single enemy man is closed in between it and another of your men, in a straight line across or down, that enemy man is taken. This can happen in several directions at once.
- Slip in (intervention capture): if your man lands in the gap between two enemy men on the same row or column, both are taken. One move can squeeze and slip in together, taking up to three men or more.
- Moving your own man between two enemy men that are already there is a capture for you, not for them: only the player who moves captures.
- You win by taking all your opponent’s men, or when your opponent cannot move. After 100 moves in a row without a capture, the side with more men wins (equal men is a draw): this is our page rule to end long games.
Keyboard and touch
| Tap a man, then a square | Move it (legal squares are marked) |
| Arrow keys | Move around the board |
| Enter or Space | Pick a man, then a square |
| Esc | Clear the selection |
Tips
- Only single men can be squeezed, so two of your men side by side cannot be taken along the line they share. A lone man with an enemy on one side and an empty square on the other is the classic target.
- Leave no gap of exactly one square between two of your men if an enemy man can slide into it: that is a two-for-one slip-in.
- The empty second row matters: men on the third row can drop back into it to close a squeeze.
- Long slides open lines. Before you move, look along the row and column you leave behind.
About this game
Mak-yek is a traditional game from Thailand, also played in Myanmar; Malaysia has a close relative called apit-sodok (“squeeze and shovel”). It belongs to the same family as Japanese hasami shogi, but its two ways of capturing make it much sharper. Sources differ on details; this page follows the common modern description, with single-man squeezes in every direction and slip-in captures across and down.
The computer looks ahead with alpha-beta search (one, two or three moves), tries captures first, and counts men, central men and men that could be squeezed next move.
The tests replay random games and check every legal move list and every capture against a separately written Python version of the rules, and check that the computer takes a man when it can.