Cockatrice/tests/card_zone_algorithms
DawnFire42 9bb399606c
refactor: extract shared card insertion algorithm from hand/stack zones (#6701)
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 — their post-add behavior (signals, coordinate placement, hidden cards) is materially different.
2026-03-15 00:39:44 -07:00
..
card_zone_algorithms_test.cpp refactor: extract shared card insertion algorithm from hand/stack zones (#6701) 2026-03-15 00:39:44 -07:00
CMakeLists.txt refactor: extract shared card insertion algorithm from hand/stack zones (#6701) 2026-03-15 00:39:44 -07:00