Example #1
0
assert gamma_free_fields(board, 2) == 36
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 1, 3, 2) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_move(board, 2, 6, 4) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 3, 5, 0) == 1
assert gamma_move(board, 3, 2, 2) == 1
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 2, 5, 2) == 1
assert gamma_move(board, 3, 5, 0) == 0
assert gamma_move(board, 3, 0, 5) == 1
assert gamma_golden_move(board, 3, 0, 0) == 1

board704050770 = gamma_board(board)
assert board704050770 is not None
assert board704050770 == ("3..3...\n"
                          ".2.1..2\n"
                          "1......\n"
                          "..31.2.\n"
                          "321....\n"
                          "3.2..3.\n")
del board704050770
board704050770 = None
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 2, 5, 5) == 1
assert gamma_move(board, 3, 1, 6) == 0
assert gamma_move(board, 1, 1, 6) == 0
assert gamma_move(board, 3, 2, 6) == 0
assert gamma_move(board, 3, 4, 2) == 1
Example #2
0
assert gamma_move(board, 3, 2, 2) == 0 
assert gamma_busy_fields(board, 3) == 1 
assert gamma_move(board, 4, 0, 2) == 0 
assert gamma_move(board, 4, 1, 3) == 1 
assert gamma_move(board, 1, 0, 2) == 0 
assert gamma_golden_move(board, 1, 2, 2) == 1 
assert gamma_move(board, 2, 3, 0) == 0 
assert gamma_move(board, 3, 1, 0) == 0 
assert gamma_move(board, 3, 0, 2) == 0 
assert gamma_golden_possible(board, 3) == 1 
assert gamma_move(board, 4, 1, 0) == 0 
assert gamma_move(board, 1, 3, 0) == 0 
assert gamma_move(board, 1, 0, 3) == 0 
assert gamma_move(board, 2, 1, 0) == 0 
assert gamma_move(board, 3, 1, 2) == 0 
assert gamma_move(board, 4, 3, 0) == 0 
assert gamma_move(board, 4, 1, 0) == 0 


board667227303 = gamma_board(board)
assert board667227303 is not None
assert board667227303 == (".42\n"
"221\n"
".1.\n"
"41.\n")
del board667227303
board667227303 = None


gamma_delete(board)
Example #3
0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_busy_fields(board, 1) == 3
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 3, 2, 4) == 1
assert gamma_move(board, 4, 3, 2) == 0
assert gamma_free_fields(board, 4) == 13
assert gamma_move(board, 1, 3, 4) == 0
assert gamma_move(board, 2, 4, 4) == 1
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 4, 1, 0) == 0
assert gamma_move(board, 1, 1, 4) == 0
assert gamma_move(board, 1, 4, 2) == 1
assert gamma_move(board, 2, 3, 4) == 0
assert gamma_free_fields(board, 2) == 11

board774071270 = gamma_board(board)
assert board774071270 is not None
assert board774071270 == (".4332\n" "14.2.\n" "2.131\n" ".1...\n" ".2..3\n")
del board774071270
board774071270 = None
assert gamma_move(board, 3, 3, 2) == 0
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_move(board, 4, 4, 0) == 0
assert gamma_busy_fields(board, 4) == 2
assert gamma_move(board, 1, 3, 4) == 0
assert gamma_move(board, 1, 3, 4) == 0
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 2, 4, 2) == 0
assert gamma_free_fields(board, 2) == 10
assert gamma_move(board, 3, 3, 4) == 0
assert gamma_move(board, 3, 2, 1) == 1
Example #4
0
assert gamma_golden_move(board, 1, 0, 3) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_free_fields(board, 2) == 7
assert gamma_move(board, 3, 1, 1) == 1
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 4, 0, 3) == 0
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_move(board, 1, 3, 1) == 0
assert gamma_free_fields(board, 1) == 2
assert gamma_move(board, 2, 3, 0) == 1
assert gamma_move(board, 3, 0, 0) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_golden_possible(board, 3) == 1


board550079128 = gamma_board(board)
assert board550079128 is not None
assert board550079128 == (".3.1\n" "...2\n")
del board550079128
board550079128 = None
assert gamma_move(board, 4, 0, 0) == 1
assert gamma_move(board, 4, 2, 0) == 0
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 3, 1) == 0
assert gamma_move(board, 3, 1, 0) == 1
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 4, 0, 1) == 1
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 1, 0, 1) == 0
Example #5
0
random actions, total chaos
"""
board = gamma_new(5, 3, 4, 1)
assert board is not None

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

board585334642 = gamma_board(board)
assert board585334642 is not None
assert board585334642 == (".34.1\n" "..4..\n" "..2..\n")
del board585334642
board585334642 = None
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 3, 1, 1) == 1
assert gamma_move(board, 3, 0, 0) == 0
assert gamma_busy_fields(board, 3) == 2
assert gamma_move(board, 4, 4, 2) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_golden_possible(board, 1) == 1

board977124637 = gamma_board(board)
assert board977124637 is not None
assert board977124637 == (".34.1\n" ".34..\n" "..2..\n")
Example #6
0
uuid: 983293891
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 2, 2, 3)
assert board is not None

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

board127306732 = gamma_board(board)
assert board127306732 is not None
assert board127306732 == (".11\n" "22.\n")
del board127306732
board127306732 = None
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 1, 1, 1) == 0
assert gamma_free_fields(board, 1) == 2
assert gamma_move(board, 2, 0, 1) == 1

board525256091 = gamma_board(board)
assert board525256091 is not None
assert board525256091 == ("211\n" "22.\n")
del board525256091
Example #7
0
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 5, 3, 10)
assert board is not None


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


board787784338 = gamma_board(board)
assert board787784338 is not None
assert board787784338 == ("211..\n"
".....\n"
".....\n"
"..3..\n"
".....\n")
del board787784338
board787784338 = None
assert gamma_move(board, 2, 3, 2) == 1 
assert gamma_move(board, 3, 2, 2) == 1 
assert gamma_move(board, 1, 3, 0) == 1 
assert gamma_move(board, 1, 0, 4) == 0 
assert gamma_move(board, 2, 3, 1) == 1 
assert gamma_move(board, 2, 4, 2) == 1 
assert gamma_move(board, 3, 0, 3) == 1 
Example #8
0
assert gamma_busy_fields(board, 1) == 1
assert gamma_golden_possible(board, 1) == 0
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 2, 4, 2) == 1
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 1, 2, 2) == 1
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 3, 3, 2) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 1, 2, 1) == 1
assert gamma_move(board, 2, 0, 4) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 3, 2, 2) == 0

board413242309 = gamma_board(board)
assert board413242309 is not None
assert board413242309 == ("..132\n" "2211.\n" ".....\n")
del board413242309
board413242309 = None
assert gamma_move(board, 1, 1, 4) == 0
assert gamma_busy_fields(board, 1) == 3
assert gamma_free_fields(board, 1) == 8
assert gamma_move(board, 2, 4, 2) == 0
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 1, 2, 2) == 0
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 2, 0, 2) == 1
assert gamma_move(board, 3, 2, 0) == 1
Example #9
0
assert gamma_busy_fields(board, 3) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 4, 2, 2) == 1
assert gamma_move(board, 4, 2, 2) == 0
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_busy_fields(board, 2) == 0
assert gamma_move(board, 3, 4, 2) == 1
assert gamma_move(board, 3, 4, 2) == 0
assert gamma_move(board, 4, 3, 0) == 0
assert gamma_move(board, 4, 1, 4) == 1
assert gamma_free_fields(board, 4) == 19
assert gamma_move(board, 1, 4, 0) == 1
assert gamma_move(board, 1, 4, 1) == 1

board183885221 = gamma_board(board)
assert board183885221 is not None
assert board183885221 == (".4.3.\n" ".....\n" ".14.3\n" "....1\n" "...11\n")
del board183885221
board183885221 = None
assert gamma_move(board, 2, 3, 2) == 1
assert gamma_move(board, 2, 1, 4) == 0
assert gamma_busy_fields(board, 2) == 1
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_busy_fields(board, 3) == 3
assert gamma_move(board, 4, 2, 1) == 1
assert gamma_move(board, 1, 3, 0) == 0
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_busy_fields(board, 1) == 5
assert gamma_move(board, 2, 3, 4) == 0
assert gamma_move(board, 2, 1, 1) == 1
Example #10
0
"""
scenario: test_random_actions
uuid: 260066480
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 2, 4, 1)
assert board is not None

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

board293154108 = gamma_board(board)
assert board293154108 is not None
assert board293154108 == ("11\n" "32\n")
del board293154108
board293154108 = None
assert gamma_move(board, 4, 1, 0) == 0

gamma_delete(board)
Example #11
0
assert gamma_move(board, 1, 3, 1) == 1
assert gamma_move(board, 2, 2, 0) == 1
assert gamma_move(board, 2, 2, 3) == 1
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 4, 4, 1) == 0
assert gamma_move(board, 1, 3, 1) == 0
assert gamma_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 0, 1) == 0
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 3, 3, 3) == 1
assert gamma_move(board, 3, 1, 2) == 1
assert gamma_move(board, 4, 2, 2) == 1
assert gamma_move(board, 1, 2, 3) == 0
assert gamma_move(board, 1, 1, 0) == 0

board205995092 = gamma_board(board)
assert board205995092 is not None
assert board205995092 == ("....\n" "..23\n" ".34.\n" "1..1\n" ".22.\n")
del board205995092
board205995092 = None
assert gamma_move(board, 2, 0, 3) == 1
assert gamma_move(board, 2, 1, 3) == 1
assert gamma_move(board, 3, 2, 3) == 0
assert gamma_busy_fields(board, 3) == 2
assert gamma_move(board, 4, 4, 3) == 0
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 2, 0, 1) == 0
assert gamma_busy_fields(board, 2) == 5
assert gamma_move(board, 3, 4, 3) == 0
Example #12
0
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_busy_fields(board, 1) == 2
assert gamma_move(board, 2, 1, 2) == 1
assert gamma_move(board, 2, 1, 3) == 1
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 3, 0, 0) == 1
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 4, 1, 1) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_busy_fields(board, 1) == 2
assert gamma_move(board, 2, 1, 0) == 0
assert gamma_move(board, 3, 4, 1) == 0
assert gamma_move(board, 3, 1, 4) == 1
assert gamma_golden_move(board, 3, 2, 1) == 0

board935712766 = gamma_board(board)
assert board935712766 is not None
assert board935712766 == (".3\n" ".2\n" ".2\n" ".1\n" "31\n")
del board935712766
board935712766 = None
assert gamma_move(board, 4, 2, 0) == 0
assert gamma_move(board, 4, 1, 2) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_busy_fields(board, 1) == 2
assert gamma_move(board, 2, 1, 0) == 0
assert gamma_move(board, 2, 0, 3) == 1
assert gamma_move(board, 3, 4, 0) == 0
assert gamma_move(board, 4, 1, 0) == 0
assert gamma_free_fields(board, 4) == 3
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 1, 1, 2) == 0
Example #13
0
"""
scenario: test_random_actions
uuid: 772667439
"""
"""
random actions, total chaos
"""
board = gamma_new(5, 4, 2, 4)
assert board is not None

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

board377195113 = gamma_board(board)
assert board377195113 is not None
assert board377195113 == ("1....\n" ".....\n" "..2..\n" ".....\n")
del board377195113
board377195113 = None
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 1, 1, 3) == 1
assert gamma_move(board, 2, 2, 3) == 1
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 1, 0, 3) == 0
Example #14
0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 1, 1, 4) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 4, 2) == 0
assert gamma_move(board, 2, 1, 4) == 0
assert gamma_busy_fields(board, 2) == 4
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 1, 0, 3) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 1, 4, 2) == 0
assert gamma_busy_fields(board, 1) == 10

board596846169 = gamma_board(board)
assert board596846169 is not None
assert board596846169 == (".1.1\n" "1222\n" "1.11\n" "1111\n" ".2..\n")
del board596846169
board596846169 = None
assert gamma_move(board, 2, 3, 0) == 1
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_golden_move(board, 1, 3, 3) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_move(board, 1, 1, 3) == 0
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 2, 3, 2) == 0
assert gamma_move(board, 1, 1, 4) == 0
assert gamma_golden_move(board, 1, 0, 1) == 0
Example #15
0
assert gamma_golden_move(board, 3, 1, 2) == 0
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_move(board, 1, 2, 1) == 1
assert gamma_move(board, 2, 2, 0) == 0
assert gamma_move(board, 3, 0, 1) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_busy_fields(board, 1) == 2
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_free_fields(board, 2) == 5
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 3, 1, 1) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 1, 4, 1) == 1

board883639270 = gamma_board(board)
assert board883639270 is not None
assert board883639270 == ("331.1\n" "2.31.\n")
del board883639270
board883639270 = None
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_move(board, 2, 0, 1) == 0
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_move(board, 3, 1, 3) == 0
assert gamma_move(board, 3, 4, 0) == 1
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_move(board, 2, 1, 3) == 0
Example #16
0
random actions, total chaos
"""
board = gamma_new(4, 3, 3, 2)
assert board is not None

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

board364116652 = gamma_board(board)
assert board364116652 is not None
assert board364116652 == (".12.\n" ".31.\n" "....\n")
del board364116652
board364116652 = None
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 3, 3, 0) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 3, 2, 0) == 1
assert gamma_golden_possible(board, 3) == 1
assert gamma_move(board, 1, 0, 2) == 1

board804913475 = gamma_board(board)
Example #17
0
assert gamma_move(board, 3, 2, 2) == 0
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 4, 4, 3) == 0
assert gamma_move(board, 1, 0, 4) == 0
assert gamma_move(board, 1, 4, 3) == 0
assert gamma_free_fields(board, 1) == 7
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 1, 0) == 0
assert gamma_busy_fields(board, 2) == 5
assert gamma_move(board, 3, 1, 4) == 0
assert gamma_move(board, 3, 4, 0) == 1
assert gamma_move(board, 4, 3, 3) == 0
assert gamma_move(board, 4, 1, 1) == 0
assert gamma_move(board, 1, 3, 1) == 0

board713104940 = gamma_board(board)
assert board713104940 is not None
assert board713104940 == ("12122\n" "..431\n" "3.214\n" ".123.\n" "11.33\n")
del board713104940
board713104940 = None
assert gamma_move(board, 2, 1, 4) == 0
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_move(board, 4, 2, 1) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_busy_fields(board, 1) == 7
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_move(board, 3, 4, 4) == 0
assert gamma_move(board, 4, 3, 0) == 0
assert gamma_busy_fields(board, 4) == 2
assert gamma_move(board, 2, 1, 0) == 0
Example #18
0
assert gamma_move(board, 1, 3, 0) == 1
assert gamma_move(board, 2, 3, 1) == 1
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 2, 4) == 1
assert gamma_move(board, 1, 4, 3) == 1
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_free_fields(board, 1) == 19
assert gamma_move(board, 2, 2, 4) == 0
assert gamma_move(board, 1, 3, 2) == 1
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_move(board, 2, 1, 0) == 1
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 1, 2, 1) == 1

board559612704 = gamma_board(board)
assert board559612704 is not None
assert board559612704 == ("..1..\n" "1...1\n" ".1.1.\n" "2112.\n" ".2.1.\n")
del board559612704
board559612704 = None
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 1, 2, 0) == 1
assert gamma_move(board, 2, 4, 1) == 1

board101751716 = gamma_board(board)
assert board101751716 is not None
assert board101751716 == ("..1..\n" "1...1\n" ".1.1.\n" "21122\n" "2211.\n")
del board101751716
board101751716 = None
Example #19
0
assert gamma_move(board, 2, 3, 4) == 0
assert gamma_move(board, 3, 2, 4) == 1
assert gamma_move(board, 1, 3, 2) == 1
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 3, 1, 3) == 1
assert gamma_move(board, 1, 5, 2) == 0
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_free_fields(board, 1) == 17
assert gamma_golden_possible(board, 1) == 1
assert gamma_move(board, 2, 4, 4) == 0
assert gamma_move(board, 2, 2, 2) == 1
assert gamma_busy_fields(board, 2) == 4

board417640775 = gamma_board(board)
assert board417640775 is not None
assert board417640775 == ("3..1.\n"
                          "2.313\n"
                          "13...\n"
                          ".221.\n"
                          "2....\n"
                          "3..3.\n")
del board417640775
board417640775 = None
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 1, 4, 3) == 1
assert gamma_move(board, 2, 1, 2) == 0
assert gamma_move(board, 2, 3, 0) == 0
assert gamma_move(board, 3, 0, 2) == 1
assert gamma_move(board, 1, 3, 3) == 1
Example #20
0

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


board918165137 = gamma_board(board)
assert board918165137 is not None
assert board918165137 == (".2\n"
"..\n"
"..\n"
"21\n"
"1.\n")
del board918165137
board918165137 = None
assert gamma_move(board, 2, 2, 0) == 0 
assert gamma_move(board, 1, 4, 0) == 0 
assert gamma_move(board, 1, 0, 3) == 1 
assert gamma_move(board, 2, 3, 1) == 0 
assert gamma_move(board, 1, 2, 0) == 0 
assert gamma_busy_fields(board, 1) == 3 
assert gamma_move(board, 2, 0, 1) == 0 
Example #21
0
assert gamma_free_fields(board, 4) == 4 
assert gamma_move(board, 1, 2, 2) == 1 
assert gamma_move(board, 1, 1, 0) == 0 
assert gamma_move(board, 2, 1, 1) == 0 
assert gamma_move(board, 3, 0, 2) == 0 
assert gamma_move(board, 3, 1, 2) == 1 
assert gamma_move(board, 4, 1, 2) == 0 
assert gamma_move(board, 1, 1, 2) == 0 
assert gamma_free_fields(board, 1) == 2 
assert gamma_move(board, 2, 0, 2) == 0 
assert gamma_move(board, 3, 1, 2) == 0 
assert gamma_move(board, 3, 2, 0) == 1 
assert gamma_move(board, 4, 0, 2) == 0 


board724472370 = gamma_board(board)
assert board724472370 is not None
assert board724472370 == ("131\n"
"32.\n"
"413\n")
del board724472370
board724472370 = None
assert gamma_golden_possible(board, 1) == 1 
assert gamma_move(board, 2, 2, 1) == 1 
assert gamma_move(board, 3, 2, 1) == 0 
assert gamma_move(board, 4, 0, 0) == 0 
assert gamma_move(board, 4, 1, 0) == 0 
assert gamma_move(board, 1, 2, 2) == 0 
assert gamma_move(board, 1, 2, 1) == 0 
assert gamma_move(board, 2, 1, 0) == 0 
assert gamma_golden_move(board, 2, 2, 0) == 1 
Example #22
0
assert gamma_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 3, 0, 0) == 0
assert gamma_move(board, 3, 1, 0) == 1
assert gamma_free_fields(board, 3) == 3
assert gamma_move(board, 4, 1, 2) == 0
assert gamma_move(board, 4, 2, 1) == 1
assert gamma_free_fields(board, 4) == 2
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 3, 1, 1) == 1
assert gamma_move(board, 3, 1, 0) == 0
assert gamma_move(board, 4, 0, 2) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 2, 2, 0) == 1

board734866711 = gamma_board(board)
assert board734866711 is not None
assert board734866711 == ("134\n" "232\n")
del board734866711
board734866711 = None
assert gamma_move(board, 3, 2, 1) == 0
assert gamma_move(board, 4, 0, 0) == 0
assert gamma_busy_fields(board, 4) == 1

gamma_delete(board)
Example #23
0
"""
board = gamma_new(4, 3, 2, 3)
assert board is not None

assert gamma_golden_move(board, 1, 0, 2) == 0
assert gamma_move(board, 2, 2, 0) == 1
assert gamma_move(board, 2, 3, 2) == 1
assert gamma_busy_fields(board, 2) == 2
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 2, 2, 2) == 1
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 1, 1, 2) == 0

board524850340 = gamma_board(board)
assert board524850340 is not None
assert board524850340 == (".122\n" ".2..\n" "..2.\n")
del board524850340
board524850340 = None
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_move(board, 1, 2, 2) == 0
assert gamma_move(board, 2, 0, 1) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 2, 0, 3) == 0
assert gamma_move(board, 2, 1, 1) == 0
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_move(board, 2, 1, 3) == 0
assert gamma_move(board, 1, 1, 3) == 0
Example #24
0
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 1, 0, 3) == 1
assert gamma_move(board, 2, 3, 4) == 0
assert gamma_move(board, 4, 3, 1) == 1
assert gamma_move(board, 1, 0, 1) == 0
assert gamma_move(board, 1, 3, 2) == 0
assert gamma_move(board, 2, 3, 1) == 0
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_move(board, 3, 4, 0) == 1
assert gamma_move(board, 4, 0, 3) == 0
assert gamma_move(board, 4, 2, 2) == 1
assert gamma_move(board, 1, 2, 0) == 0
assert gamma_move(board, 1, 1, 3) == 1
assert gamma_busy_fields(board, 1) == 4

board362846219 = gamma_board(board)
assert board362846219 is not None
assert board362846219 == ("11.1.\n" "..43.\n" "1244.\n" "3.4.3\n")
del board362846219
board362846219 = None
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 3, 3) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 4, 1, 1) == 0
assert gamma_move(board, 1, 1, 4) == 0
assert gamma_move(board, 1, 4, 3) == 1
assert gamma_busy_fields(board, 1) == 5
assert gamma_move(board, 3, 0, 1) == 0
assert gamma_move(board, 3, 2, 3) == 1
assert gamma_free_fields(board, 3) == 4
assert gamma_move(board, 4, 2, 4) == 0
Example #25
0
"""
scenario: test_random_actions
uuid: 409771910
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 4, 4, 1)
assert board is not None

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

board972518275 = gamma_board(board)
assert board972518275 is not None
assert board972518275 == ("3.\n" "..\n" "1.\n" "..\n")
del board972518275
board972518275 = None
assert gamma_move(board, 4, 0, 1) == 0
assert gamma_move(board, 4, 0, 0) == 1
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 1, 1, 2) == 0
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 1, 1) == 1
assert gamma_move(board, 3, 1, 1) == 0
assert gamma_move(board, 4, 0, 1) == 0
assert gamma_golden_possible(board, 4) == 1
assert gamma_move(board, 1, 2, 1) == 0
assert gamma_busy_fields(board, 1) == 1
Example #26
0
assert board is not None


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


board932792090 = gamma_board(board)
assert board932792090 is not None
assert board932792090 == ("222\n"
"1.1\n")
del board932792090
board932792090 = None
assert gamma_move(board, 1, 0, 0) == 0 
assert gamma_move(board, 1, 2, 0) == 0 
assert gamma_busy_fields(board, 1) == 2 
assert gamma_move(board, 2, 0, 0) == 0 
assert gamma_move(board, 2, 2, 0) == 0 
assert gamma_move(board, 1, 0, 1) == 0 
assert gamma_move(board, 2, 0, 1) == 0 
assert gamma_move(board, 2, 0, 1) == 0 
assert gamma_golden_possible(board, 2) == 1 
Example #27
0
uuid: 597419769
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 2, 3, 1)
assert board is not None

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

board401035342 = gamma_board(board)
assert board401035342 is not None
assert board401035342 == (".2.\n" "31.\n")
del board401035342
board401035342 = None
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 3, 1, 0) == 0

gamma_delete(board)
Example #28
0
assert gamma_move(board, 4, 5, 3) == 0
assert gamma_free_fields(board, 4) == 9
assert gamma_move(board, 1, 4, 1) == 0
assert gamma_move(board, 1, 3, 3) == 0
assert gamma_golden_move(board, 1, 0, 1) == 1
assert gamma_move(board, 2, 2, 6) == 0
assert gamma_move(board, 2, 4, 1) == 0
assert gamma_move(board, 3, 1, 7) == 0
assert gamma_move(board, 3, 0, 4) == 0
assert gamma_free_fields(board, 3) == 9
assert gamma_move(board, 4, 3, 4) == 0
assert gamma_move(board, 4, 2, 1) == 0
assert gamma_move(board, 1, 5, 7) == 0
assert gamma_move(board, 1, 4, 0) == 0

board867792177 = gamma_board(board)
assert board867792177 is not None
assert board867792177 == ("423..1..\n"
                          "31131422\n"
                          "1.14.441\n"
                          "4412.3.1\n"
                          "1323412.\n"
                          "23233212\n")
del board867792177
board867792177 = None
assert gamma_move(board, 2, 2, 6) == 0
assert gamma_move(board, 2, 1, 0) == 0
assert gamma_move(board, 3, 5, 4) == 0
assert gamma_move(board, 3, 2, 0) == 0
assert gamma_move(board, 4, 2, 6) == 0
assert gamma_move(board, 4, 2, 5) == 0
Example #29
0
assert gamma_move(board, 1, 1, 1) == 1
assert gamma_move(board, 2, 0, 0) == 1
assert gamma_move(board, 1, 1, 0) == 1
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_golden_possible(board, 2) == 1
assert gamma_move(board, 1, 1, 0) == 0
assert gamma_move(board, 1, 0, 1) == 1
assert gamma_free_fields(board, 1) == 2
assert gamma_move(board, 2, 2, 0) == 0
assert gamma_move(board, 1, 0, 0) == 0
assert gamma_move(board, 1, 0, 2) == 1
assert gamma_golden_move(board, 1, 0, 0) == 1
assert gamma_move(board, 2, 2, 1) == 0
assert gamma_move(board, 2, 0, 0) == 0
assert gamma_move(board, 1, 1, 2) == 1
assert gamma_move(board, 1, 1, 2) == 0

board971017686 = gamma_board(board)
assert board971017686 is not None
assert board971017686 == ("11\n" "11\n" "11\n")
del board971017686
board971017686 = None
assert gamma_move(board, 2, 1, 2) == 0
assert gamma_move(board, 1, 0, 2) == 0
assert gamma_busy_fields(board, 1) == 6
assert gamma_golden_possible(board, 1) == 0
assert gamma_move(board, 2, 0, 2) == 0
assert gamma_move(board, 2, 1, 2) == 0

gamma_delete(board)
Example #30
0
    gamma_new,
)
"""
scenario: test_random_actions
uuid: 536640276
"""
"""
random actions, total chaos
"""
board = gamma_new(6, 5, 5, 6)
assert board is not None

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

board682909523 = gamma_board(board)
assert board682909523 is not None
assert board682909523 == ("1..1..\n"
                          "......\n"
                          "......\n"
                          "......\n"
                          "......\n")
del board682909523
board682909523 = None
assert gamma_move(board, 2, 3, 1) == 1
assert gamma_busy_fields(board, 2) == 1
assert gamma_free_fields(board, 2) == 27
assert gamma_move(board, 3, 0, 3) == 1
assert gamma_move(board, 3, 1, 4) == 1
assert gamma_move(board, 4, 1, 3) == 1
assert gamma_move(board, 5, 1, 5) == 0