This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as n | |
import random as r | |
import pylab as p | |
DIRS = ['up', 'right', 'down', 'left'] | |
def new_guy(seed=0): | |
r.seed(seed) | |
dna = [[r.choice(DIRS), | |
r.randint(1, 40), |