advice.rb
def legend(what)
  return "hit" if what == "H"
  return "stand" if what == "S"
  return "split" if what == "P"
  return "double if possible, otherwise hit" if what == "Dh"
  return "double if possible, otherwise stand" if what == "Ds"
end
# Top comment row represents dealer's showing card
# Key represents user's total
# Advice is split depending on the condition of pair/soft/hard.
Top comment row represents dealer's showing card
Key represents user's total
Advice is split depending on the condition of pair/soft/hard.
Top comment row represents dealer ' s showing card Key represents user ' s total Advice is split depending on the condition of pair / soft / hard .
def legend(what)
  return "hit" if what == "H"
  return "stand" if what == "S"
  return "split" if what == "P"
  return "double if possible, otherwise hit" if what == "Dh"
  return "double if possible, otherwise stand" if what == "Ds"
end
def legend ( what ) return "hit" if what == "H" return "stand" if what == "S" return "split" if what == "P" return "double if possible, otherwise hit" if what == "Dh" return "double if possible, otherwise stand" if what == "Ds" end
Top comment row represents dealer's showing card
Key represents user's total
Advice is split depending on the condition of pair/soft/hard.
Top comment row represents dealer ' s showing card Key represents user ' s total Advice is split depending on the condition of pair / soft / hard .
what