Skip to content

Instantly share code, notes, and snippets.

back_seat_driver backseatdriver

Block or report user

Report or block backseatdriver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TEXAS
#SHELL GUI
#DONE Deck Sim / Suffle Sim DONE
#Money Bet Sim
#Dealer
#DONE Bet Engine with count DONE
'''
HOUSE RULES
'''
View Motion Control
int analogPin = 5;
int analog_3 = 3;
int val = 0;
void setup() {
Serial.begin(9600);
analogWrite(analog_3,255);
}
View Wolfram Was Correct
def dice_set_return(dice_1,dice_2):
#Where dice_1 and dice_2 are interger vlues
#that represent the number of sides of each dice!
set_sum_of_all_possible_rolls=[]
for sides_1 in range(1,dice_1+1):#The plus one is becuase indexing starts a 0 normally
for sides_2 in range(1,dice_2+1):
set_sum_of_all_possible_rolls.append(sides_1+sides_2)
return(sorted(set_sum_of_all_possible_rolls))
'''
View Addition
def bin_n_bit(dec,n):
return(str(format(dec,'0'+n+'b')))
def _str(a_str):
to_return=''
for i in range(len(a_str)):
to_return+=a_str[i]
return(to_return)
def main(bs00,bs11):
View Time Test
##import time
##print(time.clock())
##time.sleep(5)
##print(time.clock())
from theta_data import theta_data
import time
def to_print(object):
for i in range(len(object)):
@backseatdriver
backseatdriver / theta_data
Created Dec 11, 2017
theta_data_code_dump
View theta_data
theta_data=[
[0, 64, 319, 384, 639, 704, 959, 1024, 1279, 1344, 1599],
[1, 65, 256, 385, 576, 705, 896, 1025, 1216, 1345, 1536],
[2, 66, 257, 386, 577, 706, 897, 1026, 1217, 1346, 1537],
[3, 67, 258, 387, 578, 707, 898, 1027, 1218, 1347, 1538],
[4, 68, 259, 388, 579, 708, 899, 1028, 1219, 1348, 1539],
[5, 69, 260, 389, 580, 709, 900, 1029, 1220, 1349, 1540],
[6, 70, 261, 390, 581, 710, 901, 1030, 1221, 1350, 1541],
[7, 71, 262, 391, 582, 711, 902, 1031, 1222, 1351, 1542],
[8, 72, 263, 392, 583, 712, 903, 1032, 1223, 1352, 1543],
You can’t perform that action at this time.