Hi.
Been doing some work on my own for a while but Im struggling when it starts to get fun :)
I've got my basic code finished and I even got the code to output the data to a file ready (atleast I think :).
The problem is, what the software need to do is to sort the values to an array (I believe that should be used.) depending on the value of a card.
Cards deuce-6 should be assigned to the plusOne array/vector w/e.
7-9 to Neutral and T-Ace to minusOne.
The problem is that I dont really know how to declare the array if I have no idea how many cards that will be added as I need to calculate an average too.
Could I maybe do it like this?
while (true)
enter numbers
if (number is between 2 and 6) {
What is my approach to add this to an array? (if that's what should be used)
}
else if (number is T-A){
add to the minusOne array
}
Let's say that I for starters need to evaluate the value of the deck after 10 cards have been dealt what should I think about?
Lots of stupid questions.
Thanks.
Been doing some work on my own for a while but Im struggling when it starts to get fun :)
I've got my basic code finished and I even got the code to output the data to a file ready (atleast I think :).
The problem is, what the software need to do is to sort the values to an array (I believe that should be used.) depending on the value of a card.
Cards deuce-6 should be assigned to the plusOne array/vector w/e.
7-9 to Neutral and T-Ace to minusOne.
The problem is that I dont really know how to declare the array if I have no idea how many cards that will be added as I need to calculate an average too.
Could I maybe do it like this?
while (true)
enter numbers
if (number is between 2 and 6) {
What is my approach to add this to an array? (if that's what should be used)
}
else if (number is T-A){
add to the minusOne array
}
Let's say that I for starters need to evaluate the value of the deck after 10 cards have been dealt what should I think about?
Lots of stupid questions.
Thanks.
Comment