Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def StartCardRank(idx):
    rankList =  [
        ('22',54,12),('32o',160,24),('42o',157,24),('52o',154,24),('62o',164,24),('72o',169,24),('82o',168,24),('92o',166,24),('T2o',161,24),('J2o',153,24),('Q2o',145,24),('K2o',134,24),('A2o',113,24),
        ('32s',111,8),('33',53,12),('43o',146,24),('53o',140,24),('63o',151,24),('73o',162,24),('83o',167,24),('93o',165,24),('T3o',159,24),('J3o',152,24),('Q3o',144,24),('K3o',132,24),('A3o',105,24),
        ('42s',103,8),('43s',87,8),('44',51,12),('54o',129,24),('64o',137,24),('74o',147,24),('84o',156,24),('94o',163,24),('T4o',158,24),('J4o',149,24),('Q4o',141,24),('K4o',131,24),('A4o',101,24),
        ('52s',100,8),('53s',82,8),('54s',66,8),('55',48,12),('65o',125,24),('75o',133,24),('85o',142,24),('95o',150,24),('T5o',155,24),('J5o',148,24),('Q5o',138,24),('K5o',126,24),('A5o',93,24),
        ('62s',116,8),('63s',91,8),('64s',76,8),('65s',64,8),('66',38,12),('76o',121,24),('86o',127,24),('96o',136,24),('T6o',139,24),('J6o',143,24),('Q6o',135,24),('K6o',123,24),('A6o',107,24),
        ('72s',122,8),('73s',108,8),('74s',86,8),('75s',71,8),('76s',58,8),('77',29,12),('87o',114,24),('97o',119,24),('T7o',124,24),('J7o',128,24),('Q7o',130,24),('K7o',117,24),('A7o',94,24),
        ('82s',120,8),('83s',118,8),('84s',99,8),('85s',81,8),('86s',63,8),('87s',49,8),('88',21,12),('98o',97,24),('T8o',95,24),('J8o',106,24),('Q8o',109,24),('K8o',104,24),('A8o',83,24),
        ('92s',115,8),('93s',112,8),('94s',110,8),('95s',89,8),('96s',70,8),('97s',52,8),('98s',42,8),('99',16,12),('T9o',69,24),('J9o',74,24),('Q9o',78,24),('K9o',73,24),('A9o',67,24),
        ('T2s',102,8),('T3s',98,8),('T4s',96,8),('T5s',92,8),('T6s',77,8),('T7s',56,8),('T8s',40,8),('T9s',23,8),('TT',9,12),('JTo',45,24),('QTo',46,24),('KTo',41,24),('ATo',36,24),
        ('J2s',90,8),('J3s',88,8),('J4s',85,8),('J5s',84,8),('J6s',80,8),('J7s',61,8),('J8s',44,8),('J9s',26,8),('JTs',17,8),('JJ',5,12),('QJo',32,24),('KJo',28,24),('AJo',24,24),
        ('Q2s',79,8),('Q3s',75,8),('Q4s',72,8),('Q5s',68,8),('Q6s',65,8),('Q7s',59,8),('Q8s',43,8),('Q9s',27,8),('QTs',15,8),('QJs',13,8),('QQ',3,12),('KQo',19,24),('AQo',18,24),
        ('K2s',62,8),('K3s',60,8),('K4s',57,8),('K5s',55,8),('K6s',50,8),('K7s',47,8),('K8s',37,8),('K9s',22,8),('KTs',14,8),('KJs',11,8),('KQs',7,8),('KK',2,12),('AKo',10,24),
        ('A2s',39,8),('A3s',34,8),('A4s',33,8),('A5s',30,8),('A6s',35,8),('A7s',31,8),('A8s',25,8),('A9s',20,8),('ATs',12,8),('AJs',8,8),('AQs',6,8),('AKs',4,8),('AA',1,12),('xx',170,0)      
        ]
    return rankList[idx]
        


src/f/p/fpdb-chaz-HEAD/pyfpdb/Database.py   fpdb-chaz(Download)
        sql = "INSERT INTO StartCards (category, name, rank, combinations) VALUES (%s, %s, %s, %s)".replace('%s', self.sql.query['placeholder'])
        for i in range(170):
            (name, rank, combinations) = Card.StartCardRank(i)
            c.execute(sql,  ('holdem', name, rank, combinations))
        for idx in range(-13,1183):