Added Royal Flush checker.

This commit is contained in:
2021-06-21 09:52:57 -07:00
parent 7344a22c3a
commit 7e39195433
7 changed files with 131 additions and 17 deletions

View File

@ -13,16 +13,6 @@ bool gameInit(game_t *game) {
// Init the engine and the rendering pipeline
engineInit(&game->engine, game);
// Shufflemuh
card_t hand[CARD_DECK_SIZE];
for(uint8_t i = 0; i < CARD_DECK_SIZE; i++) {
hand[i] = i;
}
arrayShuffle(sizeof(card_t), hand, CARD_DECK_SIZE);
cardHandSort(hand, CARD_DECK_SIZE);
printf("Bruh moment\n");
// Hand off to the poker logic.
pokerInit(&game->poker, &game->engine);