Still working on testing

This commit is contained in:
2022-01-18 21:55:00 -08:00
parent a930eba101
commit a98bc52be0
2 changed files with 14 additions and 1 deletions

View File

@@ -189,7 +189,9 @@ void pokerAi(uint8_t player, pokerturn_t *turn) {
} else {
// Simulate my hand being the winning hand, use that as the confidence
// TODO: Repurpose old code lmao. Just take it from Dawn-C
BGB_printf("Holy shit you guys");
pokerWinnerGetForPlayer(player, &winning);
BGB_printf("Winning type %u", winning.type);
confidence = pokerWinnerGetTypeConfidence(winning.type);
}

View File

@@ -43,4 +43,15 @@ inline bool pokerDoesPlayerNeedToBet(uint8_t playerIndex);
inline uint8_t pokerGetRemainingBetterCount();
void pokerWinnerFillRemaining(pokerplayerwinning_t *winning);
void pokerWinnerGetForPlayer(uint8_t playerIndex,pokerplayerwinning_t *winning);
inline uint16_t pokerWinnerGetTypeConfidence(uint8_t type);
inline uint16_t pokerWinnerGetTypeConfidence(uint8_t type);
uint8_t pokerWinnerCompare(
pokerplayerwinning_t *left, pokerplayerwinning_t *right
);
void pokerWinnerDetermineForPot(
pokerpot_t *pot,
pokerplayerwinning_t *winners,
uint8_t *winnerPlayers,
uint8_t *winnerCount,
uint8_t *participants,
uint8_t *participantCount
);