Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View siddhantgoel's full-sized avatar

Siddhant Goel siddhantgoel

View GitHub Profile
from argparse import ArgumentParser
import os
from textwrap import dedent
import warnings
def parse_args():
parser = ArgumentParser()
Verifying my Blockstack ID is secured with the address 16Tog6QRz5PpQWZBQptjnaysrVrfi8i8UQ https://explorer.blockstack.org/address/16Tog6QRz5PpQWZBQptjnaysrVrfi8i8UQ

Keybase proof

I hereby claim:

  • I am siddhantgoel on github.
  • I am siddhantgoel (https://keybase.io/siddhantgoel) on keybase.
  • I have a public key ASCRErmbHVp9pxv4xexFtLMrpHKDVCzW_wrX_GHpp0CvUwo

To claim this, I am signing this object:

#! /usr/bin/env python
import sys
class Game(object):
def __init__(self, num_players, num_courts):
self.a = map(lambda x: 'a' + str(x), xrange(1, num_players + 1))
self.b = map(lambda x: 'b' + str(x), xrange(1, num_players + 1))
self.played_together = dict()
#! /usr/bin/env python
import sys
import random
def generate(a, b):
n = len(a); n_round = 0;
while n > 1:
assert(len(a) == len(b)) # safety check
print "Round => " + str(n_round + 1)