Ruby Blackjack (Part 2)

unnamed.png
Today has been a long day, and I am still not done with my blackjack. So I made the goal to at least make progress, so that tomorrow I can finish out the remaining steps.

I took Jesse’s advice, and went ahead and completed the UI questions. Such as, Do you want to hit or stay? So they are ready when I get there.

I also started scripting out psuedo-code for how I plan to set up the conditional statements that will trigger the string interpolated responses.

Whew!

But as far as actual code that works and does something… today, this is what I got:

deal_cards = deck.shift

dealer_hand = deal_cards.value + deal_cards.value

player_hand = deal_cards.value + deal_cards.value

p dealer_hand

p player_hand

I know that it don’t seem like much, but trust me. It took me hours (and research) to get here. And I am still not quite getting what I want.

I am hoping that getting a much needed good night sleep and some decent amount of food will get me a rockstar day tomorrow. I need it!

 
1
Kudos
 
1
Kudos

Now read this

Microsoft vs Open Source Software

Lately there has been some talk about .Net framework becoming open source. .Net is Microsoft’s server-side client that is used in building web applications, among other things. Apparently, Microsoft’s choice to open source some of its... Continue →