Skip to content

Instantly share code, notes, and snippets.

texas_holdem {
best_hand "best_hand_c -hi"
name "Texas Hold'em"
blinds {{0 1} {1 2}}
deal {
{{deal all 2}} {{deal community 3}} {{deal community 1}} {{deal community 1}}
}
hand { any 5 }
pot { 1 high }
#include <cpuid.h> // for __get_cpuid intrinsic
#include <stdio.h>
#include <string.h>
#include <immintrin.h>
#include <math.h>
int has_rdrand() {
const unsigned int flag_RDRAND = (1 << 30);
unsigned int eax, ebx, ecx, edx;
import copy
import random
import timeit
max_cards = 30
simulations = 10000
print('simulations = {}'.format(simulations))
dict_deck = {i: 1 for i in range(52)}

Keybase proof

I hereby claim:

  • I am rustybrooks on github.
  • I am rustybrooks (https://keybase.io/rustybrooks) on keybase.
  • I have a public key whose fingerprint is C4F5 7F70 A40E EBBD CDA1 18DA 614D C3C3 2E23 14DA

To claim this, I am signing this object: