-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbanko_main.py
More file actions
53 lines (41 loc) · 1.65 KB
/
banko_main.py
File metadata and controls
53 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 13 20:12:31 2017
@author: adi
"""
import banko_random_number
import banko_print_card
import banko_make_bet
class banko():
def main(self):
k = True
while k:
print('\n########################################################################################')
x = banko_random_number.random_number()
print("First Card Is: " + banko_print_card.print_card(x))
p1a = x % 14
x = banko_random_number.random_number()
print("\nSecond Card Is: " + banko_print_card.print_card(x))
p1b = x % 14
while True:
print("\nWould you like to: \n 1.Play \n 2.Pass \n 3.Moonshot \n\nEnter Choice 1,2 or 3.")
choice =raw_input("I will: ")
x = banko_random_number.random_number()
if (choice == '1') or (choice == "2") or (choice == "3"):
break;
print("\nYour Card Is: " + banko_print_card.print_card(x))
p2 = x % 14
banko_make_bet.make_bet(choice,p1a,p1b,p2)
while True:
f = raw_input("\nPress Y/y to Keep Playing and Q/q to Quit: ")
if f == 'y' or f == 'Y':
k = True
break;
elif f == 'q' or f == 'Q':
k = False
break;
else:
print("Invalid Choice! Choose Again")
if __name__ == '__main__':
banko().main()