Simple Card Game using Two Dimensional Array in C Programming Language
Daftar Isi:
- This card game program is based on the basic logic of blackjack card games. Blackjack also known as twenty one game. The winner is the biggest values or the one who received a value of twenty one. This program is simple blackjack card game used C language and array data structure. This game have two players and a deck of card. Start game with 52 cards shuffled and dealt for 2 players. Each player has 26 cards. Shuffled cards using swap method. Two top cards summed and compared with other players. The player who has the largest card value wins. But the values of the cards should not exceed 21. If one player has a cards value over 21 will lose. Cards that have been played will be removed from the game. This game will finished if the player's card runs out. This program could not distribute the 2 cards directly from the deck to the players and added more card for bigger values.