Implemented card array sorting

This commit is contained in:
2021-06-15 07:14:26 -07:00
parent 77389ffd15
commit baa79fc646
3 changed files with 39 additions and 2 deletions

View File

@ -13,6 +13,16 @@ 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);