Cockatrice/tests/add_card_algorithm
DawnFire42 b49083f8d3
refactor: extract shared card insertion algorithm from hand/stack zones
Hand and stack zones had near-identical addCardImpl() implementations, differing only in whether resetState() preserves annotations.
Extract the shared pattern into a template function (CardZoneAlgorithms::addCardToList) to eliminate duplication and enable isolated testing without Qt dependencies.
Pile, table, and zone-view logic are intentionally excluded — thier post-add behavior (signals, coordinate placement, hidden cards) is materially different.
2026-03-14 13:14:27 -04:00
..
add_card_algorithm_test.cpp refactor: extract shared card insertion algorithm from hand/stack zones 2026-03-14 13:14:27 -04:00
CMakeLists.txt refactor: extract shared card insertion algorithm from hand/stack zones 2026-03-14 13:14:27 -04:00