Esempio n. 1
0
def cCAR3(name, money, net, z):

    global W3
    global MAXW
    global POT
    global CARD1
    global CARD2
    global PAUSE

    if net != None:
        if net == 0:
            cprint("****{0} Passed Turn (Bet 0) | Cards: {1}{2}"
                   .format(name, [CARD1%13+1, CARD2%13+1], [z%13+1]))
        elif net > 0:
            cprint("****{0} Won! +${1} - total: {2} | Cards: {3}{4}"
                   .format(name, net, money,
                           [CARD1%13+1, CARD2%13+1], [z%13+1]))
        elif net < 0:
            cprint("****{0} Lost! -${1} - total: {2} | Cards: {3}{4}"
                   .format(name, abs(net), money,
                           [CARD1%13+1, CARD2%13+1], [z%13+1]))
        W3.addnstr(9, 3, "Pot Size: {0}       ".format(POT), 20)
        PAUSE = True

    card3 = asciicards.get(z)
    for index in list(range(1, 10)):
        W3.addnstr(index, 64, card3[index-1], 13)
    W3.refresh()
Esempio n. 2
0
def cCAR1(name, money, minbet, x, y):

    global W3
    global MAXW
    global POT

    W3.addnstr(2, 3, "Current Player:     ", 20)
    W3.addnstr(3, 3, "{0}                 ".format(name), 20)
    W3.addnstr(5, 3, "Player Money:       ", 20)
    W3.addnstr(6, 3, "{0}                 ".format(money), 20)
    W3.addnstr(8, 3, "Minimum Bet: {0}    ".format(minbet), 20)
    W3.addnstr(9, 3, "Pot Size: {0}       ".format(POT), 20)
    
    card1 = asciicards.get(x)
    for index in list(range(1, 10)):
        W3.addnstr(index, 30, card1[index-1], 13)
    card2 = asciicards.get(y)
    for index in list(range(1, 10)):
        W3.addnstr(index, 45, card2[index-1], 13)
    card3 = asciicards.get(52)
    for index in list(range(1, 10)):
        W3.addnstr(index, 64, card3[index-1], 13)
    W3.refresh()