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

Ruby Blackjack (Part 1)

Last week we were assigned a lab that required us to create the game blackjack in Ruby. This has been the bane of my existence ever since. I am still not done (and it was due today). I have struggled and written, deleted and rewritten... Continue →