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

Rails Girls Workshop Houston

Today I coached at the Rails Girls Workshop in Houston. It was a fantabulous experience. I was worried that I wouldn’t be able to coach the girls that much. I was worried that I didn’t know enough. I was worried that I wouldn’t be much... Continue →