Refactored jokers stack to be a list (AI used)

This commit is contained in:
MeirGavish
2025-08-16 13:18:44 +03:00
parent bc8847d2cb
commit 92fa279059
4 changed files with 44 additions and 37 deletions
+5 -2
View File
@@ -74,6 +74,10 @@ enum HandType
void game_init();
void game_update();
// Forward declaration
struct List;
typedef struct List List;
// Utility functions for other files
typedef struct CardObject CardObject; // forward declaration, actually declared in card.h
typedef struct JokerObject JokerObject;
@@ -82,8 +86,7 @@ int get_hand_top(void);
int hand_get_size(void);
CardObject** get_played_array(void);
int get_played_top(void);
JokerObject** get_jokers(void);
int get_jokers_top(void);
List* get_jokers(void);
int get_num_discards_remaining(void);