Compare commits
2 Commits
842d9d3da5
...
5453a8acc3
| Author | SHA1 | Date |
|---|---|---|
|
|
5453a8acc3 | |
|
|
76875b61bb |
|
|
@ -94,6 +94,7 @@ class RoyalGameOfUr(Game):
|
|||
d : dict[str, Any] = dict(
|
||||
enemies_at_start=self.board[0][ot_index],
|
||||
enemies_at_finish=self.board[BOARD_LENGTH-1][ot_index],
|
||||
roll=self.roll,
|
||||
safe_fields=list(SAFE_FIELDS),
|
||||
stack_fields=list(STACK_FIELDS),
|
||||
star_fields=list(STAR_FIELDS),
|
||||
|
|
@ -105,7 +106,7 @@ class RoyalGameOfUr(Game):
|
|||
for i in range(BOARD_LENGTH):
|
||||
d[str(i)] = (
|
||||
"YOU" if self.board[i][my_index] > 0 else (
|
||||
"ENEMY" if my_index not in SAFE_FIELDS and self.board[i][ot_index] > 0 else (
|
||||
"ENEMY" if i not in SAFE_FIELDS and self.board[i][ot_index] > 0 else (
|
||||
""
|
||||
)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue