def setup():
    global t
    t = Tablero(5, 5)

    t._tablero = [[1, 0, 0, 0, 0],
                  [0, 0, 1, 1, 0],
                  [0, 0, 0, 1, 0],
                  [0, 1, 1, 1, 0],
                  [1, 0, 0, 0, 0]]
示例#2
0
def setup():
    global t1
    global t2
    global comp

    comp = Comparador(2)
    t1 = Tablero(5, 5)
    t2 = Tablero(5, 5)

    t1._tablero = [[0, 0, 0, 0, 0],
                   [0, 0, 1, 1, 0],
                   [0, 0, 1, 1, 0],
                   [0, 0, 0, 0, 0],
                   [0, 0, 0, 0, 0]]

    t2._tablero = [[0, 0, 0, 0, 0],
                   [0, 1, 1, 1, 0],
                   [0, 0, 0, 0, 0],
                   [0, 0, 0, 0, 0],
                   [0, 0, 0, 0, 0]]
def setup():
    global t
    t = Tablero(5, 5)

    t._tablero = [[1, 0, 0, 0, 0], [0, 0, 1, 1, 0], [0, 0, 0, 1, 0],
                  [0, 1, 1, 1, 0], [1, 0, 0, 0, 0]]