2025-02-06 19:44:48 -05:00
|
|
|
#ifndef _HF_PLAY_
|
|
|
|
#define _HF_PLAY_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2025-02-15 15:10:26 -05:00
|
|
|
typedef struct Play Play;
|
|
|
|
|
2025-02-06 19:44:48 -05:00
|
|
|
#include "card.h"
|
|
|
|
|
2025-02-15 15:10:26 -05:00
|
|
|
struct Play {
|
|
|
|
Card *played;
|
|
|
|
Card *target;
|
|
|
|
};
|
|
|
|
|
2025-02-06 19:44:48 -05:00
|
|
|
bool valid_play(Hand *field, Card *played, Card *target);
|
2025-02-10 17:27:02 -05:00
|
|
|
Card *valid_target(Card *active, Hand *field);
|
2025-02-15 15:10:26 -05:00
|
|
|
Play ai_play(Hand *hand, Hand *field);
|
2025-02-06 19:44:48 -05:00
|
|
|
|
|
|
|
#endif
|