Ejemplo n.º 1
0
def test_next_status_relive():
    b = Board()
    b.cells[0][1] = True
    b.cells[1][2] = True
    b.cells[0][0] = True
    b.cells[1][1] = False
    assert b.get_next_status(1, 1) is True
Ejemplo n.º 2
0
def test_next_status_stay_alive_3():
    b = Board()
    b.cells[0][1] = True
    b.cells[1][2] = True
    b.cells[0][0] = True
    b.cells[1][1] = True
    assert b.get_next_status(1, 1) is True
Ejemplo n.º 3
0
def test_next_status_die_overpopulation():
    b = Board()
    b.cells[0][1] = True
    b.cells[1][2] = True
    b.cells[0][0] = True
    b.cells[1][0] = True
    b.cells[1][1] = True
    assert b.get_next_status(1, 1) is False