So my friend tells me he's trying to help fix some guy's Python script for Software Development Design...
I agree to look at it, despite having no knowledge of Python what-so-ever...
I couldn't help but laugh. Perhaps his spelling has something to do with his success rate...
I agree to look at it, despite having no knowledge of Python what-so-ever...
I couldn't help but laugh. Perhaps his spelling has something to do with his success rate...
Code:
# Cameron's SDD asinment
choice = '0'
print "Camerons card game"
print "you are playing black jack "
print "you have a 7 and a 4 you have 11"
print "the derler has a ace and one more card"
print " "
print "1)hit"
print "2)stand"
print " "
choice=raw_input("Make a choice")
while choice == '0':
ÂÂÂÂÂÂÂÂif choice == '1':
ÂÂÂÂÂÂÂÂÂÂÂÂprint "you hit you get a king you have 21"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "the derler flips face down card its a 2 derler has 13"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "you win"
ÂÂÂÂÂÂÂÂÂÂÂÂchoice = "0"
ÂÂÂÂÂÂÂÂelif choice == '2':
ÂÂÂÂÂÂÂÂÂÂÂÂprint "you stand you have 11"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "the derler flips face down card its a 2 derler has 13"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "derler wins"
ÂÂÂÂÂÂÂÂÂÂÂÂchoice = "0"
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂelse :
ÂÂÂÂÂÂÂÂÂÂÂÂprint "that is not a move mack a nuther choice"
ÂÂÂÂ
print "you have a queen and a jack you have 20"
print "the derler has a 2 and a face down card"
ÂÂÂÂ
print " "
print "1) hit"
print "2) stand"
print " "
choice=raw_input("make a choice")
while choice == '0':
ÂÂÂÂif choice == '1':
ÂÂÂÂÂÂÂÂprint "you hit you get a 7 you have 27 you are bust"
ÂÂÂÂÂÂÂÂprint "you lose"
ÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂ
ÂÂÂÂelif choice == '2':
ÂÂÂÂÂÂÂÂprint "you stand you have 20"
ÂÂÂÂÂÂÂÂprint "the derler flips face down card is a Queen derler has 12"
ÂÂÂÂÂÂÂÂprint " derler hits its a 10 derler has 22 derler bust"
ÂÂÂÂÂÂÂÂprint "you win"
ÂÂÂÂelse :
ÂÂÂÂÂÂÂÂprint "that is not a move mack a nuther choice"ÂÂÂÂ
print "you have a 2 and a ace you have 3 or 13"
print "derler has a ace and a face down card derler hasÂÂ11ÂÂ"
ÂÂÂÂ
print " "
print "1) hit"
print "2) stand"
print " "
choice=raw_input("make a choice")
while choice == '0':
ÂÂÂÂif choice == '1':
ÂÂÂÂÂÂÂÂprint "you hit you get a 8 you have 21"
ÂÂÂÂÂÂÂÂprint "derler flips the face down card its a 10 derler has 21"
ÂÂÂÂÂÂÂÂprint " push "
ÂÂÂÂelif choice == '2':
ÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂprint "you have 13 "
ÂÂÂÂÂÂÂÂprint "derler flips the face down card its a ace derler has 12"
ÂÂÂÂÂÂÂÂprint "derler hits its 10 derler bust"
ÂÂÂÂÂÂÂÂprint "you win"ÂÂÂÂ
ÂÂÂÂelse :
ÂÂÂÂÂÂÂÂprint "that is not a move mack a nuther choice"
print "you have two tens you have 20"
print "derler has a ace and one face dawn card"
print " "
print "1) hit"
print "2) stand"
print "3) split"
print " "
choice=raw_input("make a choice")
while choice == '0':
ÂÂÂÂif choice == '1':
ÂÂÂÂÂÂÂÂprint "you hit you get a 5 you have 25 you are bust "
ÂÂÂÂÂÂÂÂprint "you lose"
ÂÂÂÂÂÂÂÂ
ÂÂÂÂelif choice == '2':
ÂÂÂÂÂÂÂÂprint "you have 20 "
ÂÂÂÂÂÂÂÂprint "the derler flips face down card its a king derler has black jack"
ÂÂÂÂÂÂÂÂprint "you lose"ÂÂÂÂÂÂ
ÂÂÂÂelif choice == '3':
ÂÂÂÂÂÂÂÂÂÂÂÂprint "you have a ten and a ten"
ÂÂÂÂÂÂÂÂÂÂÂÂprint " "
ÂÂÂÂÂÂÂÂÂÂÂÂprint "1) hit 1 hit 2"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "2) hit 2 stand 1"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "3) hit 1 stand 2"
ÂÂÂÂÂÂÂÂÂÂÂÂprint "4) stand 1 stand 2"
ÂÂÂÂÂÂÂÂÂÂÂÂprint " "
choice=raw_input
if choice == '1':
ÂÂÂÂÂÂÂÂprint "you hit you get a 7 and a 3 you have 17 and 13"
ÂÂÂÂÂÂÂÂprint "dealer flips face down card its a king derler has black jack"
ÂÂÂÂÂÂÂÂprint "you lose"
elif choce == '2':
ÂÂÂÂÂÂÂÂprint "you hit and stand you gat a jack you have 20 and 10 "
ÂÂÂÂÂÂÂÂprint "derler flips face down card it a king derler has black jack"
ÂÂÂÂÂÂÂÂprint "you lose"
elif choice == '3':
ÂÂÂÂÂÂÂÂprint "you hit and stand you gat a jack you have 20 and 10 "
ÂÂÂÂÂÂÂÂprint "derler flips face down card it a king derler has black jack"
ÂÂÂÂÂÂÂÂprint "you lose"
elif choice == '4':
ÂÂÂÂÂÂÂÂprint "you stand you have 10 and a 10"
ÂÂÂÂÂÂÂÂprint "derler flips face down card its a ace derler has 2 "
ÂÂÂÂÂÂÂÂprint "derler hits its a a 5 derler has 6"
ÂÂÂÂÂÂÂÂprint "you win"
print "game over"