First of all I just wanna say... Yes, I have used the search function and, no I didn't find the answer I was looking for.
I have a project due in a week or so, I have to code a "simple" game of blackjack... The catch is, it's not simple
Here is the catch (or the many catchii, or is it catches?:P)
-When you start the program you must have an option to start a new game or load from file
-There are two decks of cards and each card must be removed from the deck and placed into the players hand when it is drawn.
-You must have the option of selecting AI players
-The dealer must also be an AI player
-Each player has to make a bet, and the dealer will pay every player whose point total exceeds his own
-The players data must be saved as a Struct so as to accomodate as many players as the user desires.
I'm sorry if I'm boring you. I'm completely stumped here...
This is what I've though of so far:
-The cards are saved in two 4x13 arrays, Deck1 and Deck2.
-Random roll from 1 to 2 determines which deck.
-Random roll from 1-4 determines which suit.
-Random roll from 1-13 determines which card.
-Then a function would determine the value of the value of the card depending on row number
The things I have no idea how to do:
-Remove each drawn card from the array
-Save a game and allow it to be continued and, by extension, load game.
I'm aware that this may be trivial to many of you experienced programmers. I've been studying C for about two weeks now.
Help much appreciate friends