[BR] Engine: finish the whole attack before declaring a winner, so both players can win at once (ties) (from Trello)

Copied from the Trello card Complete entire attacks before declaring a winner, allowing possible ties (label: engine). Created on 2022-12-25 by a since-deleted Trello user; moved to Backlog on 2024-12-31 and to TODO on 2026-03-27 by axpendix. No comments or checklists.

Description (2022-12-25)

In the event of a self-KO at the end of the game, both players should be permitted to draw prize cards before the game is ended. Currently, when both players should draw their final prize card at the same time, TCG ONE simply declares the winner to the first person to be given the option to draw the final prize. After each player has drawn their prizes, the game can be declared a tie.

While Sudden Death is the proper rule, this might be a simple alternative. Also remember that in the event one player wins in two ways (final prize and knocking out final Pokémon) to their opponent’s one, they are the winner.

Probably fixed (checked on 2026-10-27)

git 0483abd98 (2026-10-24), “Both players can win at the same time: who wins in more ways wins, otherwise the game is a draw” (forum 15266, 10877, 5996, 12601):

  • Knock Outs of one Knock Out check are resolved together; the game ends only after all of them and their Prize cards are done.
  • The player who wins in more ways (last Prize card taken, no Pokémon left for the opponent) wins; equal ways is a draw, since the engine has no Sudden Death.
  • Regression tests: Take Down (recoil self-KO) vs Crosscounter with both taking their last Prize (draw); one player winning in two ways vs one (that player wins); both with no Pokémon left (draw); Horror Psychic Energy, Spell Tag, Destiny Stinger TEU 5 and Destined Fight SSP 100.

That covers the scenarios in this card. Left to check:

  • Knock Outs that happen at different points of the same attack are still checked as they happen, not at the end of the attack. That is the separate engine issue in forum 17553, so a game could still end before a later Knock Out in the same attack.
  • Sudden Death itself is not implemented; a tie ends in a draw.

Triage Agent: Fixed in f77bf2e01 (not deployed yet). The game now finishes the whole attack before it declares a winner, so Knock Outs at different points of one attack all give their Prize cards. Example: Minior GRI 77 Cosmicsplosion does 190 damage, then Minior is Knocked Out; with 1 Prize card left each, both players now take their last Prize card. The player who wins in more ways (last Prize card, and no Pokémon left for the opponent) wins; otherwise the game is a draw, as there is no Sudden Death. Cursed Blast (Dusknoir SFA 20, Dusclops SFA 19 / PRE 36) works the same way, per the official Japanese Q&A.

Still open, separately: Knock Outs from damage are still processed before effects such as Whirlwind finish (forum 17553).