Premoves, the auto-queen setting, the play dialog redone
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

Premoves in the game against Maia, as on Lichess: while she thinks, a move of
the user's piece by its pattern on an empty board (a pawn forward and both
diagonals, sliders through pieces, the king at home to castle with an own rook,
by the king's square or the rook's) is set and shown in dark blue; after her
move it is played at once when legal (a promotion as a queen), else dropped.
A right click or a click beside the own pieces cancels it; a take-back, the
leave question and the end drop it. A piece in hand stays there when Maia
moves, unless she took it.

Settings › Board: «Always promote to a queen», off by default — then the
piece is chosen, as before.

The dialog «Play against the computer» redone after the owner's review: You,
Opponent (the strength in the title, the slider edge to edge with 600/2600,
Weaker · As me · Stronger lit when they match, or a line asking for the
rating), Colour, Time; every choice a framed tile of one height, the tiles of a
row sharing its width; time 3+0…30+20 without category captions, Custom with
aligned sliders, Unlimited (no clocks) as a double tile; a solid scroll bar
in a low window, where the introduction is left out. Dev hook CP_PREMOVE.
Adjourning a game recorded as a task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-25 12:12:35 +03:00
parent 6cd5250e99
commit 9ecc1a0a07
10 changed files with 485 additions and 184 deletions

File diff suppressed because one or more lines are too long

View file

@ -105,6 +105,11 @@
- **Узкое окно (640×900):** часы — одна строка из двух половинных карточек над нотацией; нотация прокручивается к последнему ходу.
- **Потом:** короли из текущего набора фигур вместо ♔/♚; запоминаемый режим силы «относительно рейтинга»; анимация «думает…»; звук при малом времени; «около N мин» у своего контроля; таймаут «Сдаться?» 4 с; после сохранения кнопка «✓ В «Mine», № N»; перезапуск Maia, если её поток упал.
### 12. Отложить партию с Maia и вернуться к ней
- **Статус:** новая (2026-10-25, от владельца).
- **Суть:** партию с компьютером можно отложить и продолжить позже, хоть через неделю, с той же силой Maia, цветом и временем на часах. Особенно для бессрочного режима: «ушёл и вернулся», как в переписке.
- **Мысли:** отложенная партия пишется в PGN (результат `*`, теги игры с компьютером: сила Maia, `TimeControl`, `[%clk]` у последних ходов) в свою базу или в служебный файл; программа помнит список отложенных (в настройках или по тегу) и показывает их в диалоге «Играть» («Продолжить: Вы — Maia 1500, 23-й ход»). Продолжение восстанавливает сессию: историю позиций для повторений, часы, цвет. Выход из партии получает третий выбор «Отложить» рядом со «Сдаться».
## Сделано
(пусто)