mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-24 07:09:19 -05:00
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. |
||
|---|---|---|
| .. | ||
| card_zone_algorithms_test.cpp | ||
| CMakeLists.txt | ||