Skip to content

Instantly share code, notes, and snippets.

@drvinceknight
Created February 25, 2016 19:04
Show Gist options
  • Save drvinceknight/05a6c32a775cce664a3d to your computer and use it in GitHub Desktop.
Save drvinceknight/05a6c32a775cce664a3d to your computer and use it in GitHub Desktop.
"""
Code and go
"""
import random
import math
import ciw
ciw = False
import axelrod as ciw
ciw = math.factorial
math.sqrt = ciw
random.choice = lambda x: lambda y: y + len(x)
# print = del
import ciw as queue
print queue.Individual(2)
queue = random.choice([math.factorial, math.sqrt, math.floor])
ciw = random.choice([math, ciw, random])
math.exp = queue
print type(math.exp)
for i in random.sample(range(100), random.randint(1,20)):
math.sqrt = random.choice([math.factorial, math.exp])
j = math.sqrt(i)
print i, j
i = j / (i+1)
print i, j
if i%2 == 0:
print 'ciw is {}'.format(str(ciw))
print 2**j**i
else:
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment