Refactor/hand (#490)

* move all hand funcs to their new file. now to clean up

* WIP

* Cleanup + doc hand.h

* clang format

* Refactor loose variables in hand.c into a proper Hand struct

* Fix some more issues

* Apply *some* suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* remove outdated comment

* fix rebase issue

* fix rng_info missing from g_game_vars init

---------

Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Geralt
2026-05-22 17:51:39 -07:00
committed by GitHub
co-authored by Copilot Autofix powered by AI MathisMartin31
parent d7414157a5
commit 2329c4c681
9 changed files with 1235 additions and 1043 deletions
+3
View File
@@ -27,6 +27,8 @@
#define MAX_HANDS 4
#define MAX_DISCARDS 4
#define DEFAULT_HAND_SIZE 8
/**
* @brief A central location for all game variables.
*
@@ -45,6 +47,7 @@ typedef struct
s32 round;
s32 ante;
s32 money;
s32 hand_size;
// Blind variables