Still working on testing
This commit is contained in:
@@ -189,7 +189,9 @@ void pokerAi(uint8_t player, pokerturn_t *turn) {
|
|||||||
} else {
|
} else {
|
||||||
// Simulate my hand being the winning hand, use that as the confidence
|
// Simulate my hand being the winning hand, use that as the confidence
|
||||||
// TODO: Repurpose old code lmao. Just take it from Dawn-C
|
// TODO: Repurpose old code lmao. Just take it from Dawn-C
|
||||||
|
BGB_printf("Holy shit you guys");
|
||||||
pokerWinnerGetForPlayer(player, &winning);
|
pokerWinnerGetForPlayer(player, &winning);
|
||||||
|
BGB_printf("Winning type %u", winning.type);
|
||||||
confidence = pokerWinnerGetTypeConfidence(winning.type);
|
confidence = pokerWinnerGetTypeConfidence(winning.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -43,4 +43,15 @@ inline bool pokerDoesPlayerNeedToBet(uint8_t playerIndex);
|
|||||||
inline uint8_t pokerGetRemainingBetterCount();
|
inline uint8_t pokerGetRemainingBetterCount();
|
||||||
void pokerWinnerFillRemaining(pokerplayerwinning_t *winning);
|
void pokerWinnerFillRemaining(pokerplayerwinning_t *winning);
|
||||||
void pokerWinnerGetForPlayer(uint8_t playerIndex,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
|
||||||
|
);
|
Reference in New Issue
Block a user