Cockatrice/libcockatrice_network/libcockatrice/network/server/remote/game
Vasco Guerreiro Vintém Morais 3a62dfb3dc Fix #6659: Correct logging for bottom-of-library card moves
Cause:
- This issue happens due to logic of moving the card from the top of the
  deck being reused when moving from the bottom of the deck, in a way
  that makes it impossible to check if the card came from the bottom.

Resolution:
- Updated the logging logic in the client for card moves.
- Added a gRPC parameter ('is_from_bottom') for card moves.
- Updates the server logic to reverse the order of the card move if the
'is_from_bottom' parameter is true.
- Added a test to show the expected behaviour of the fix.

NOTE: While the changes in this patch seem big, this is due to changing
the loop in the moveCard function to a helper function, in order to make
the bug fix change. The only change to the loop was to pass a
variable attribution to the moveCard function because it was redundant
to be in the loop.
2026-03-30 10:25:52 +01:00
..
server_abstract_participant.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
server_abstract_participant.h [Server_AbstractParticipant] Rename bool getters (#6492) 2026-01-05 00:34:32 -05:00
server_abstract_player.cpp Fix #6659: Correct logging for bottom-of-library card moves 2026-03-30 10:25:52 +01:00
server_abstract_player.h Fix #6659: Correct logging for bottom-of-library card moves 2026-03-30 10:25:52 +01:00
server_arrow.cpp add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
server_arrow.h add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
server_arrowtarget.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_arrowtarget.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_card.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_card.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_cardzone.cpp Bump minimum Qt version from 5.8 to 5.15 (#6442) 2025-12-23 09:58:23 -08:00
server_cardzone.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
server_counter.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_counter.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_game.cpp Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
server_game.h move returning cards to server_game (#6561) 2026-01-24 12:54:29 -05:00
server_move_card_struct.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_player.cpp Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
server_player.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_spectator.cpp Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
server_spectator.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00