Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. R

    Python is it possible to call multiple functions from the same line depending on previous events?

    Thanks! ill check that out. In my case d2() is the function that gets called when the dealer's upcard is a 2 (blackjack game) so I figured it's be much simpler to have 2-11 functions since strategy is determined by the dealer's upcard. I could make it all 1 function but it'd get very big and...
  2. R

    blackjack simulator WIP (for card counters)

    I have no clue what I'm doing but this code gets the job done. In its current form, this program allows you to calculate the house edge for currently 1 ruleset (6d H17 DAS split up to 2 hands no surrender) by simulating x-millions of hands playing basic strategy. You are able to sim about 625k...
  3. R

    Python is it possible to call multiple functions from the same line depending on previous events?

    import random a = [1,2,3] random.shuffle(a) print(a) print(a[0]) def fun1(): print("I'm function 1!") def fun2(): print("I'm function 2!") def fun3(): print("I'm function 3!") fun(a[0]) This is a simplified version of a deck of cards hence the odd random selection...
  4. R

    Python why wont this work? (using or in if statements)

    total = 3 def function(): global total if total == 1 or 2: print(total) print("I'm a function that lets you know that your number is 1 or 2!") else: print("This is to let you know your number ISNT 1 or 2!") def function_quotes(): global total...
Back
Top Bottom