7/05/19

The aces in the blackjack game I was programming seemed to be a problem. The problem was that the ace counts either as a 1 or an 11, so I'd need to turn the variable handvalue into an array or something. I was thinking that when an ace is drawn what I'd do is make handvalue[1] the value when ace is a one, and handvalue[2] when the value of the ace is an 11. But this poses a problem. If I draw two aces, I'd need 4 cells, and if I draw more, I need more cells exponentially. So that's not going to work. I searched up a solution on google, and it said to just treat the ace as an 11, and when the handvalue goes over 21, just -10 from it.

Had maths yesterday, but most of us only really got up to question 3, since the concept was super hard. The worse thing is that our teacher isn't here right now, and so we have a sub that doesn't teach maths, or at least extension maths, so we had to figure it out ourselves. I ended up figuring it out after the lesson ended.

I think me and my friends want to try overwatch again. I stopped playing after they reworked my support main, and getting back to a shooter game after a long time without playing it.

Comments