Implemented card array sorting
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user