diff --git a/GoL/gol.py b/GoL/gol.py new file mode 100644 index 0000000..a4e27be --- /dev/null +++ b/GoL/gol.py @@ -0,0 +1,62 @@ +import gol_utils as g + + + +world = g.create_world(alive=([(0,1),(1,1),(2,1)])) + +def casillas_vecinas( pos, MAX): + """Retorna Lista de casillas vecinas validas""" + + xpos, ypos = pos + + posiciones = [ + (x,y) + for x in range(xpos-1, xpos+2) if x >= 0 and x = 0 and y