This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
class Table (object): | |
def __init__(self, points=0, rolls=0, slots=None, plays=None, possible=None, dice=None, scored=None, recent_pts=0, recent_dict=None): | |
if slots is None: | |
slots = {} | |
if plays is None: | |
plays = [] | |
if possible is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
class Table (object): | |
def __init__(self, points=0, rolls=0, slots=None, plays=None, possible=None, dice=None): | |
if slots is None: | |
slots = {} | |
if plays is None: | |
plays = [] | |
if possible is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
class Table (object): | |
def __init__(self, points=0, rolls=0, slots=None, plays=None, possible=None, dice=None): | |
if slots is None: | |
slots = {} | |
if plays is None: | |
plays = [] | |
if possible is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
class Table (object): | |
def __init__(self, points=0, rolls=0, slots=None, plays=None, possible=None, dice=None): | |
if slots is None: | |
slots = {} | |
if plays is None: | |
plays = [] | |
if possible is None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def singleGame(): | |
roll1 = roll() | |
print(format("You rolled: ", '64s'), roll1) | |
print("") | |
holdPrompt = input("Swap any dice? (y for HITME, n for HOLD): ") | |
print("") | |
holdPrompt.replace(" ", "") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
def main(): | |
print("Welcome to blackjack!") | |
start = input("Type x to begin: ") | |
start.strip() | |
start = start.lower() | |
while start != "x": | |
print("Invalid input.") | |
start = input("Type x to begin: ") |