Looking for Spock

“Why do you have traffic jams on your hat?”
“To keep the flies away,” Rincewind explained.
- And how it turns out?
“No pepper is clear,” Clancy snorted.
- If it helped, someone would have thought of entoy long ago.
- Well yes. I thought of it, ”said Rincewind.
- Be Spock.
Sir Terry Pratchett "The Last Continent"
This game symbolizes continuous spiritual search, fighting stereotypes and reconciliation with your alter ego. Okay, who am I trying to fool? I just saw her in a dream.
Of course, with the classic stone-paper-scissors scheme , I was familiar long before that. As with its “extended” version, designed to solve the problem of a high probability of “replay” when opponents throw out the same figures (however, this addition, for obvious reasons, does not help the heroes of the Big Bang Theory ). Let me remind the rules:
Scissors cut the paper. The paper wraps the stone. The stone crushes the lizard, and the lizard poisons Spock, while Spock smashes scissors, which in turn cut off the head of a lizard that eats paper that has evidence against Spock. Spock evaporates the stone, and the stone, of course, blunts the scissors
There are even more advanced schemes.
Но я бы не хотел углубляться в эзотерику.

Но я бы не хотел углубляться в эзотерику.
I have long wanted to adapt these (or similar to them) rules for chess games. Such patterns of interaction of figures, allow you to perform complex tactical constructions, "closing" from one figure by another. At the same time, there is no “strongest” piece in the game, each piece can be beaten by some other one.
Parallels and meridians
Разумеется, здесь нельзя не вспомнить о знаменитой китайской игре "Джунгли", послужившей прототипом для более «взрослой» версии "Китайских военных шахмат". В западных странах, больше известна очень похожая на них, но пожалуй более простая игра "Стратего". Во всех этих играх, целью является не уничтожение фигур противника, а прорыв на вражескую территорию и «захват флага». Сложные взаимозависимости «силы» фигур служат лишь фоном, заставляющим геймплей заиграть новыми красками.
Сходные принципы используются и в "Ko Shogi" — сложной шахматной игре 18-го века. Проблемой этой игровой системы является наличие «артиллерии» — большого количества фигур «стреляющих» на дальние дистанции без перемещения на атакуемую позицию. Без какого либо сдерживающего фактора, игра превратилась бы в бессмысленную бойню. Положение спасают «Shield» и «Shield Unit», находящиеся на поле в большом количестве и иммунные к выстрелам.
Сходные принципы используются и в "Ko Shogi" — сложной шахматной игре 18-го века. Проблемой этой игровой системы является наличие «артиллерии» — большого количества фигур «стреляющих» на дальние дистанции без перемещения на атакуемую позицию. Без какого либо сдерживающего фактора, игра превратилась бы в бессмысленную бойню. Положение спасают «Shield» и «Shield Unit», находящиеся на поле в большом количестве и иммунные к выстрелам.
Part of the requirements for the new game was related to the fact that I planned to use it for debugging the game AI, as part of my Dagaz project . The playing field should have been small. I stopped at a 5x5 square board. To prevent the figures from “pushing” in such a limited space, I allowed them to “jump over” friendly figures as if they were empty fields. The figures themselves were supposed to be recognizable:
Stone- moves one field in any of eight directions (although, through a chain of pieces of its color, it can suddenly jump to the other end of the board). According to the scheme, he attacks "Scissors" and "Lizard" - the main killers in the game (and, of course, immune to their attacks). This is the most massive figure, a component, a kind of human shield. The figure is mobile, but slow.
Scissors - can only be moved diagonally (if necessary, jumping over figures of their own color), beat "Lizard" and "Paper" ("Spock" is the main figure of the game, "Scissors" is not beaten). This is an analogue of the chess " Elephant ".
The lizard is the strongest killer, an analogue of the chess " Queen", moves in any of the eight directions to any number of fields and hits" Paper "and" Spock. "Must move around the field very carefully, because it is vulnerable to attacks" Scissors "and" Stone. "
Paper - moves orthogonally, like a chess" Rook ". As well as Lizard, it beats Spock, but, in addition, it can also attack Stone.
Spock is the main figure in the game. If a player does not have a single Spock (and during the game several may appear) - he lost (also, traditionally, the failure is the impossibility of performing the next about the move.) "Spock" moves like a chess " Knight", but only on the occupied field (with his figure, or the figure of the enemy - it does not matter). At the same time," Spock "can attack any figure, but does not kill it, but turns it into another one (the transformed figure appears on the field from where" Spock " began to move.) "Stone" turns into "Scissors", "Scissors" in "Lizard", etc. Of course, the transformed figure always becomes friendly.

The initial arrangement is somewhat similar to a chess one. "Spock" - the main figure, is located in the center. Both "Papers", as well as chess "Rooks" - on the flanks. The “stones” in front of them are covered with “Scissors”, but more importantly, the “Paper” cannot attack the enemy “Stone” with the first move, since it will be substituted for the “Spock” attack. Reserve "Spock", plus the deprivation of an opponent of a strong figure - the desired production.
"Lizards" - the strongest figure, in the initial placement there. You can get it only during the game, the transformation of the "Scissors". “Spock” cannot turn the friendly “Stones” from the initial position, as it will be substituted by the enemy “Paper”. It may seem that Spock cannot attack the enemy Spock directly (since it is fraught with attack and petrifies), but this is not so. The appearance on the field of b3 (or d3) "Paper" (no matter whose) will lead to the immediate victory of the "blue".
In general, the game turned out exactly as I planned. Dynamic, unexpected, insidious. More importantly, at each stage of the game, the moves, with a relatively small number of them, vary widely from strong to very weak. One wrong move can lead to immediate defeat.
Spock allowed me to work well on game AI, and although the results of this work are still very modest, my understanding of the minimax , and the UCT too, has improved significantly. All this is a topic for another article. In the meantime, I invite readers to enjoy the new original game , as well as other games and puzzles that are included in iteration 1.1.7 of the project .