Journal 2017/05/05

play-pig-28card-game29-step-17-version-2

This is the complete code for the program using the same framework as the previous post.

This program is capable of keeping count with up to 4 decks in play.

 

print (“Values are Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King, Ace”)
print (“Please enter the values are written. This uses the Wong Halves Card counting method, The dealer will be at a disadvantage when the count becomes Positive.”)
print (“Restart the Program upon a new game, This Program is designed for a number of Decks; ideal for Counting”)

d = input(“How many Decks are in play? “)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count = a
TrueCount = a / d
print (“This is the current count”, Count)
print (“This is the true count”, TrueCount)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count2 = a + Count
TrueCount2 = Count2 / d
print (“This is the current count”, Count2)
print (“This is the true count”, TrueCount2)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count3 = a + Count2
TrueCount3 = Count3 / d
print (“This is the current count”, Count3)
print (“This is the true count”, TrueCount3)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count4 = a + Count3
TrueCount4 = Count4 / d
print (“This is the current count”, Count4)
print (“This is the true count”, TrueCount4)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count5 = a + Count4
TrueCount5 = Count5 / d
print (“This is the current count”, Count5)
print (“This is the true count”, TrueCount5)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count6 = a + Count5
TrueCount6 = Count6 / d
print (“This is the current count”, Count6)
print (“This is the true count”, TrueCount6)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count7 = a + Count6
TrueCount7 = Count7 / d
print (“This is the current count”, Count7)
print (“This is the true count”, TrueCount7)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count8 = a + Count7
TrueCount8 = Count8 / d
print (“This is the current count”, Count8)
print (“This is the true count”, TrueCount8)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count9 = a + Count8
TrueCount9 = Count9 / d
print (“This is the current count”, Count9)
print (“This is the true count”, TrueCount9)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count10 = a + Count9
TrueCount10 = Count10 / d
print (“This is the current count”, Count10)
print (“This is the true count”, TrueCount10)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count11 = a + Count10
TrueCount11 = Count11 / d
print (“This is the current count”, Count11)
print (“This is the true count”, TrueCount11)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count12 = a + Count11
TrueCount12 = Count12 / d
print (“This is the current count”, Count12)
print (“This is the true count”, TrueCount12)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count13 = a + Count12
TrueCount13 = Count13 / d
print (“This is the current count”, Count13)
print (“This is the true count”, TrueCount13)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count14 = a + Count13
TrueCount14 = Count14 / d
print (“This is the current count”, Count14)
print (“This is the true count”, TrueCount14)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count15 = a + Count14
TrueCount15 = Count15 / d
print (“This is the current count”, Count15)
print (“This is the true count”, TrueCount15)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count16 = a + Count15
TrueCount16 = Count16 / d
print (“This is the current count”, Count16)
print (“This is the true count”, TrueCount16)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count17 = a + Count16
TrueCount17 = Count17 / d
print (“This is the current count”, Count17)
print (“This is the true count”, TrueCount17)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count18 = a + Count17
TrueCount18 = Count18 / d
print (“This is the current count”, Count18)
print (“This is the true count”, TrueCount18)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count19 = a + Count18
TrueCount19 = Count19 / d
print (“This is the current count”, Count19)
print (“This is the true count”, TrueCount19)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count20 = a + Count19
TrueCount20 = Count20 / d
print (“This is the current count”, Count20)
print (“This is the true count”, TrueCount20)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count21 = a + Count20
TrueCount21 = Count21 / d
print (“This is the current count”, Count21)
print (“This is the true count”, TrueCount21)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count22 = a + Count21
TrueCount22 = Count22 / d
print (“This is the current count”, Count22)
print (“This is the true count”, TrueCount22)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count23 = a + Count22
TrueCount23 = Count23 / d
print (“This is the current count”, Count23)
print (“This is the true count”, TrueCount23)

i = input(“What is your Card? “)
if i == “Jack” or i == “Ace” or i == “Queen” or i == “King” or i == “Ten”:
a = -1
elif i == “Eight”:
a = 0
elif i == “Nine”:
a = -0.5
elif i == “Three” or i == “Four” or i ==”Six”:
a = 1
elif i == “Five”:
a = 1.5
elif i == “Two” or i == “Seven”:
a = 0.5

Count24 = a + Count23
TrueCount24 = Count24 / d
print (“This is the current count”, Count24)
print (“This is the true count”, TrueCount24)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s