예제 #1
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 743869726
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 3, 1)
assert board is not None

assert gamma_move(board, 1, 2, 1) == 0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_busy_fields(board, 2) == 1
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_free_fields(board, 3) == 2
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 3, 0, 1) == 0
예제 #2
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 532226978
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 3, 3, 4)
assert board is not None

assert gamma_move(board, 2, 2, 0) == 1
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_free_fields(board, 2) == 10
assert gamma_move(board, 3, 2, 2) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 2, 3, 2) == 1
assert gamma_move(board, 2, 2, 2) == 0
assert gamma_move(board, 3, 0, 3) == 0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 2, 2, 0) == 0
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_free_fields(board, 2) == 6
예제 #3
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 121645701
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 4, 4, 1)
assert board is not None

assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_move(board, 2, 3, 2) == 1
assert gamma_move(board, 3, 2, 1) == 1
assert gamma_move(board, 3, 2, 0) == 1
assert gamma_move(board, 4, 0, 0) == 1
assert gamma_move(board, 1, 2, 2) == 0
assert gamma_free_fields(board, 1) == 2
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_move(board, 2, 1, 2) == 0
assert gamma_free_fields(board, 2) == 3
assert gamma_move(board, 3, 1, 3) == 0
assert gamma_move(board, 3, 1, 3) == 0
예제 #4
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 801252129
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 4, 4, 2)
assert board is not None

assert gamma_move(board, 1, 2, 1) == 1
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 3, 0, 0) == 1
assert gamma_move(board, 4, 2, 1) == 0
assert gamma_move(board, 4, 1, 0) == 1
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_busy_fields(board, 1) == 3
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 4, 0, 3) == 1
assert gamma_move(board, 4, 1, 1) == 1
예제 #5
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 368887825
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 5, 2, 17)
assert board is not None

assert gamma_move(board, 1, 1, 3) == 1
assert gamma_move(board, 1, 2, 4) == 1
assert gamma_move(board, 2, 4, 3) == 1
assert gamma_move(board, 1, 2, 2) == 1
assert gamma_move(board, 1, 2, 2) == 0
assert gamma_move(board, 2, 1, 1) == 1

board103531492 = gamma_board(board)
assert board103531492 is not None
assert board103531492 == ("..1..\n" ".1..2\n" "..1..\n" ".2...\n" ".....\n")
del board103531492
board103531492 = None
assert gamma_move(board, 1, 0, 1) == 1
예제 #6
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 934183731
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 4, 3, 4)
assert board is not None

assert gamma_move(board, 1, 3, 0) == 1
assert gamma_busy_fields(board, 1) == 1
assert gamma_golden_possible(board, 1) == 0

board847838238 = gamma_board(board)
assert board847838238 is not None
assert board847838238 == (".....\n" ".....\n" ".....\n" "...1.\n")
del board847838238
board847838238 = None
assert gamma_move(board, 2, 3, 2) == 1
assert gamma_move(board, 3, 1, 0) == 1
assert gamma_free_fields(board, 3) == 17
assert gamma_move(board, 1, 4, 3) == 1
예제 #7
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 423508570
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 5, 4, 3)
assert board is not None

assert gamma_move(board, 1, 1, 3) == 1
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_busy_fields(board, 1) == 2
assert gamma_free_fields(board, 1) == 23
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_move(board, 4, 4, 1) == 1
assert gamma_move(board, 4, 3, 0) == 0
assert gamma_golden_move(board, 4, 2, 1) == 0
assert gamma_move(board, 2, 3, 4) == 1
assert gamma_free_fields(board, 2) == 18
assert gamma_move(board, 3, 4, 4) == 1
예제 #8
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 753097229
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 6, 6, 3)
assert board is not None

assert gamma_move(board, 1, 2, 3) == 1
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_busy_fields(board, 2) == 1
assert gamma_free_fields(board, 2) == 22
assert gamma_golden_move(board, 2, 3, 2) == 0
assert gamma_move(board, 3, 3, 2) == 1
assert gamma_move(board, 4, 1, 1) == 1
assert gamma_move(board, 4, 0, 5) == 1
assert gamma_free_fields(board, 4) == 19
assert gamma_move(board, 5, 4, 3) == 0
assert gamma_move(board, 5, 1, 0) == 1
assert gamma_busy_fields(board, 5) == 1
assert gamma_move(board, 6, 5, 1) == 0
예제 #9
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 172431494
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 2)
assert board is not None

assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_free_fields(board, 2) == 3
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_move(board, 2, 0, 1) == 0
assert gamma_move(board, 1, 0, 1) == 0
예제 #10
0
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)

"""
scenario: test_random_actions
uuid: 737416195
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 7, 3, 14)
assert board is not None


assert gamma_move(board, 1, 2, 1) == 1 
assert gamma_move(board, 1, 1, 2) == 1 
assert gamma_move(board, 2, 3, 2) == 1 
assert gamma_move(board, 2, 0, 2) == 1 
assert gamma_free_fields(board, 2) == 24 
assert gamma_move(board, 3, 4, 1) == 0 
assert gamma_move(board, 1, 3, 0) == 1 
assert gamma_move(board, 1, 3, 3) == 1 


board649804236 = gamma_board(board)
assert board649804236 is not None
예제 #11
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 246923213
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 2, 3, 2)
assert board is not None

assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 3, 0, 0) == 0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 3, 1, 0) == 0
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 1, 3, 1) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_busy_fields(board, 2) == 1
assert gamma_move(board, 3, 3, 0) == 1
예제 #12
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 578434263
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 2, 4, 1)
assert board is not None

assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 3, 2, 1) == 1
assert gamma_move(board, 4, 0, 1) == 0
assert gamma_move(board, 4, 2, 1) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_move(board, 2, 0, 1) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 3, 0, 1) == 0
예제 #13
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 556971938
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 3, 2, 6)
assert board is not None

assert gamma_move(board, 1, 2, 3) == 0
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_busy_fields(board, 1) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_free_fields(board, 1) == 13
assert gamma_move(board, 2, 2, 3) == 0
assert gamma_move(board, 2, 4, 1) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 2, 0, 4) == 0

board275107504 = gamma_board(board)
assert board275107504 is not None
예제 #14
0
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)

"""
scenario: test_random_actions
uuid: 185978984
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 4, 1)
assert board is not None


assert gamma_move(board, 1, 2, 0) == 0
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_golden_possible(board, 2) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_free_fields(board, 3) == 5
assert gamma_move(board, 4, 2, 0) == 0
assert gamma_move(board, 4, 0, 1) == 1
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 3, 1, 1) == 1
assert gamma_move(board, 4, 2, 1) == 0
예제 #15
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 823109863
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 2, 2, 6)
assert board is not None

assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 2, 1, 4) == 0
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_golden_move(board, 2, 0, 0) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 1, 3, 1) == 1
assert gamma_golden_move(board, 2, 1, 3) == 0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 1, 0, 1) == 0
예제 #16
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 639231715
"""
"""
random actions, total chaos
"""
board = gamma_new(4, 4, 3, 3)
assert board is not None

assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 2, 2, 1) == 1
assert gamma_move(board, 2, 2, 3) == 1
assert gamma_move(board, 3, 3, 1) == 1
assert gamma_golden_possible(board, 3) == 1

board979314652 = gamma_board(board)
assert board979314652 is not None
assert board979314652 == ("..2.\n" "....\n" ".123\n" "1...\n")
del board979314652
board979314652 = None
assert gamma_move(board, 1, 1, 0) == 1
예제 #17
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 852699734
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 5, 5, 5)
assert board is not None

assert gamma_move(board, 1, 0, 0) == 1
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_free_fields(board, 1) == 23
assert gamma_golden_possible(board, 1) == 0
assert gamma_move(board, 2, 2, 4) == 1
assert gamma_move(board, 3, 4, 0) == 1
assert gamma_busy_fields(board, 3) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 4, 3, 3) == 1
assert gamma_move(board, 4, 3, 0) == 1
assert gamma_free_fields(board, 4) == 19
assert gamma_move(board, 5, 3, 2) == 1
assert gamma_move(board, 5, 4, 1) == 1
예제 #18
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 585679208
"""
"""
random actions, total chaos
"""
board = gamma_new(8, 8, 3, 22)
assert board is not None

assert gamma_move(board, 1, 5, 2) == 1
assert gamma_move(board, 1, 6, 2) == 1

board204060090 = gamma_board(board)
assert board204060090 is not None
assert board204060090 == ("........\n"
                          "........\n"
                          "........\n"
                          "........\n"
                          "........\n"
                          ".....11.\n"
                          "........\n"
                          "........\n")
예제 #19
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 806293855
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 6, 5, 9)
assert board is not None

assert gamma_move(board, 1, 2, 0) == 1
assert gamma_move(board, 1, 5, 0) == 1
assert gamma_free_fields(board, 1) == 34
assert gamma_move(board, 2, 2, 2) == 1
assert gamma_move(board, 2, 4, 1) == 1
assert gamma_move(board, 3, 2, 5) == 1
assert gamma_move(board, 4, 4, 2) == 1
assert gamma_free_fields(board, 4) == 30
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 5, 2, 4) == 1
assert gamma_move(board, 1, 5, 5) == 1
assert gamma_move(board, 1, 5, 4) == 1
예제 #20
0
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)

"""
scenario: test_random_actions
uuid: 194402857
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 2, 2, 2)
assert board is not None


assert gamma_busy_fields(board, 1) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_busy_fields(board, 2) == 0
assert gamma_free_fields(board, 2) == 6
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 1, 2, 1) == 1
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_move(board, 2, 1, 0) == 0
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 1, 0, 0) == 1
예제 #21
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 414723703
"""
"""
random actions, total chaos
"""
board = gamma_new(8, 8, 6, 11)
assert board is not None

assert gamma_move(board, 1, 7, 6) == 1
assert gamma_move(board, 1, 6, 2) == 1
assert gamma_busy_fields(board, 1) == 2
assert gamma_move(board, 2, 2, 4) == 1
assert gamma_move(board, 3, 1, 4) == 1
assert gamma_move(board, 4, 0, 2) == 1
assert gamma_move(board, 5, 1, 3) == 1
assert gamma_busy_fields(board, 5) == 1
assert gamma_move(board, 6, 7, 2) == 1
assert gamma_move(board, 1, 4, 3) == 1
assert gamma_move(board, 2, 4, 0) == 1
assert gamma_move(board, 2, 4, 3) == 0
assert gamma_move(board, 4, 2, 1) == 1
예제 #22
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 159066784
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 2, 4, 1)
assert board is not None

assert gamma_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_free_fields(board, 2) == 1
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 4, 1, 1) == 1

board369208282 = gamma_board(board)
assert board369208282 is not None
assert board369208282 == ("14\n" "2.\n")
del board369208282
board369208282 = None
assert gamma_move(board, 1, 0, 0) == 0
예제 #23
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 740534304
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 4, 3, 2)
assert board is not None

assert gamma_move(board, 1, 3, 0) == 0
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 3, 0, 2) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_busy_fields(board, 1) == 1
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_move(board, 3, 0, 0) == 1
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_free_fields(board, 1) == 5
예제 #24
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 633174182
"""
"""
random actions, total chaos
"""
board = gamma_new(7, 7, 3, 22)
assert board is not None

assert gamma_move(board, 1, 6, 2) == 1
assert gamma_move(board, 2, 1, 6) == 1
assert gamma_move(board, 2, 4, 5) == 1
assert gamma_move(board, 3, 5, 0) == 1
assert gamma_move(board, 1, 3, 2) == 1
assert gamma_move(board, 2, 3, 2) == 0
assert gamma_move(board, 2, 6, 5) == 1
assert gamma_free_fields(board, 2) == 43
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 2, 3, 2) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 6, 5) == 0
assert gamma_move(board, 3, 1, 1) == 1
예제 #25
0
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)

"""
scenario: test_random_actions
uuid: 304022217
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 5, 4, 1)
assert board is not None


assert gamma_move(board, 1, 2, 0) == 0 
assert gamma_free_fields(board, 1) == 10 
assert gamma_move(board, 2, 0, 4) == 1 
assert gamma_move(board, 2, 1, 2) == 0 
assert gamma_busy_fields(board, 2) == 1 
assert gamma_golden_move(board, 2, 1, 0) == 0 
assert gamma_move(board, 3, 0, 1) == 1 
assert gamma_move(board, 4, 1, 1) == 1 
assert gamma_busy_fields(board, 4) == 1 
assert gamma_move(board, 1, 3, 0) == 0 
assert gamma_move(board, 1, 0, 1) == 0 
assert gamma_move(board, 2, 0, 1) == 0 
예제 #26
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 613566861
"""
"""
random actions, total chaos
"""
board = gamma_new(7, 5, 4, 7)
assert board is not None

assert gamma_move(board, 1, 4, 2) == 1
assert gamma_golden_possible(board, 1) == 0
assert gamma_move(board, 2, 1, 4) == 1
assert gamma_move(board, 3, 0, 6) == 0
assert gamma_move(board, 4, 4, 2) == 0
assert gamma_move(board, 1, 1, 3) == 1
assert gamma_move(board, 1, 5, 1) == 1
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 2, 4, 2) == 0
assert gamma_move(board, 3, 2, 3) == 1
assert gamma_move(board, 4, 1, 1) == 1
assert gamma_move(board, 4, 5, 3) == 1
assert gamma_move(board, 1, 2, 1) == 1
예제 #27
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 250033430
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 7, 5, 7)
assert board is not None

assert gamma_move(board, 1, 0, 1) == 1
assert gamma_busy_fields(board, 1) == 1
assert gamma_move(board, 2, 0, 5) == 1
assert gamma_move(board, 3, 0, 2) == 1
assert gamma_move(board, 3, 3, 4) == 1
assert gamma_golden_move(board, 3, 5, 0) == 0
assert gamma_move(board, 4, 5, 2) == 1
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 5, 3, 4) == 0
assert gamma_golden_move(board, 5, 4, 3) == 0
assert gamma_move(board, 1, 2, 0) == 1
assert gamma_move(board, 2, 4, 1) == 1
assert gamma_move(board, 3, 4, 0) == 1
예제 #28
0
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)

"""
scenario: test_random_actions
uuid: 929868067
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 7, 5, 4)
assert board is not None


assert gamma_move(board, 1, 4, 6) == 1 
assert gamma_move(board, 2, 6, 0) == 0 
assert gamma_move(board, 2, 2, 2) == 1 
assert gamma_move(board, 3, 3, 1) == 1 
assert gamma_move(board, 4, 1, 5) == 1 
assert gamma_move(board, 4, 0, 4) == 1 
assert gamma_free_fields(board, 4) == 30 
assert gamma_move(board, 1, 0, 3) == 1 
assert gamma_move(board, 1, 2, 2) == 0 
assert gamma_move(board, 2, 2, 3) == 1 
assert gamma_move(board, 2, 1, 1) == 1 
assert gamma_move(board, 3, 6, 0) == 0 
예제 #29
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 939076480
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 5, 3, 3)
assert board is not None

assert gamma_move(board, 1, 4, 1) == 0
assert gamma_move(board, 1, 1, 2) == 1

board786686342 = gamma_board(board)
assert board786686342 is not None
assert board786686342 == ("..\n" "..\n" ".1\n" "..\n" "..\n")
del board786686342
board786686342 = None
assert gamma_move(board, 2, 1, 2) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 3, 0, 3) == 1
assert gamma_move(board, 1, 1, 1) == 1
예제 #30
0
    gamma_busy_fields,
    gamma_delete,
    gamma_free_fields,
    gamma_golden_move,
    gamma_golden_possible,
    gamma_move,
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 832693655
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 4, 3, 4)
assert board is not None

assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_golden_possible(board, 1) == 0
assert gamma_free_fields(board, 2) == 10
assert gamma_move(board, 3, 0, 0) == 1
assert gamma_free_fields(board, 3) == 9
assert gamma_move(board, 1, 3, 2) == 0
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 2, 2, 0) == 1
assert gamma_move(board, 3, 3, 2) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_busy_fields(board, 1) == 2
assert gamma_move(board, 2, 0, 0) == 0