| Move 1, pavloya1 is playing.. Cards available to pavloya1 Player pavloya1 returned [0, 0, [[1, 3, 1, 4, 2], [3, 3, 1, 4, 4], [4, 3, 1, 4, 3]]] in 0.196 ms Player pavloya1 old score 0, gained 0, new score 0 |
| Move 2, stercdom is playing.. Cards available to stercdom Player stercdom returned [3, 0, [[1, 3, 1, 4, 2], [3, 3, 1, 4, 4], [4, 3, 1, 4, 3]]] in 87.060 ms Player stercdom old score 0, gained 22, new score 22 |
| Move 3, pavloya1 is playing.. Cards available to pavloya1 play() took 3.000s which is more than allowed timeout 1.7s Traceback (most recent call last):
File "game.py", line 396, in oneMove
player.py", line 235, in play
result = find_best_card_placement(self.cardMatrix, cards_out)
player.py", line 136, in find_best_card_placement
a = count(new_table, l, w, rotated_card)
player.py", line 75, in count
ccount += floodfillforeachpart(r - 1, c + i, matrix[r - 1][c + i])
player.py", line 65, in floodfillforeachpart
if on_table(nx, ny) and not visited[nx][ny] and matrix[nx][ny] == color:
player.py", line 50, in on_table
rows, cols = len(matrix), len(matrix[0])
File "game.py", line 242, in handler
TimeException: TimeOut
Error occured in situation: self.tournament = True self.timeout = 1.7 self.boardRows = 33 self.boardCols = 33 self.cardsOnDesk = [[0, 0, [[1, 3, 1, 4, 2], [3, 3, 1, 4, 4], [4, 3, 1, 4, 3]]], [3, 0, [[1, 3, 1, 4, 2], [3, 3, 1, 4, 4], [4, 3, 1, 4, 3]]]] self.cardsAtHand = [[[3, 2, 3, 1], [2, 2, 3, 3], [3, 3, 2, 2], [1, 3, 2, 3]], [[1, 2, 1, 4], [2, 2, 1, 1], [1, 1, 2, 2], [4, 1, 2, 1]], [[1, 4, 1, 2, 3], [4, 4, 1, 2, 2], [2, 4, 1, 2, 4]], [[2, 1, 2, 4, 3], [1, 1, 2, 4, 4], [4, 1, 2, 4, 1]], [[3, 1, 3, 2, 4], [1, 1, 3, 2, 2], [2, 1, 3, 2, 1]], [[2, 1, 2, 3], [1, 1, 2, 2], [2, 2, 1, 1], [3, 2, 1, 2]], [[3, 1, 3, 4, 2], [1, 1, 3, 4, 4], [4, 1, 3, 4, 1]], [[4, 2, 4, 1], [2, 2, 4, 4], [4, 4, 2, 2], [1, 4, 2, 4]], [[4, 3, 4, 2, 1], [3, 3, 4, 2, 2], [2, 3, 4, 2, 3]], [[4, 1, 4, 3, 2], [1, 1, 4, 3, 3], [3, 1, 4, 3, 1]], [[2, 3, 2, 1, 4], [3, 3, 2, 1, 1], [1, 3, 2, 1, 3]], [[4, 1, 4, 2, 3], [1, 1, 4, 2, 2], [2, 1, 4, 2, 1]], [[2, 4, 2, 3, 1], [4, 4, 2, 3, 3], [3, 4, 2, 3, 4]], [[3, 4, 3, 1], [4, 4, 3, 3], [3, 3, 4, 4], [1, 3, 4, 3]], [[1, 4, 1, 3], [4, 4, 1, 1], [1, 1, 4, 4], [3, 1, 4, 1]], [[1, 2, 1, 4, 3], [2, 2, 1, 4, 4], [4, 2, 1, 4, 2]], [[3, 4, 3, 2, 1], [4, 4, 3, 2, 2], [2, 4, 3, 2, 4]], [[3, 2, 3, 1, 4], [2, 2, 3, 1, 1], [1, 2, 3, 1, 2]], [[2, 4, 2, 1], [4, 4, 2, 2], [2, 2, 4, 4], [1, 2, 4, 2]], [[2, 3, 2, 4], [3, 3, 2, 2], [2, 2, 3, 3], [4, 2, 3, 2]], [[1, 3, 1, 2, 4], [3, 3, 1, 2, 2], [2, 3, 1, 2, 3]], [[3, 1, 3, 2], [1, 1, 3, 3], [3, 3, 1, 1], [2, 3, 1, 3]], [[1, 2, 1, 3], [2, 2, 1, 1], [1, 1, 2, 2], [3, 1, 2, 1]]] #only available cards are reported |