Skip to content

Commit

Permalink
[Backgammon] Fix deprecated a_min and a_max (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk committed Jul 24, 2024
1 parent e4feab3 commit bc9df9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgx/backgammon.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _is_all_on_home_board(board: Array):
One can bear off if all checkers are on home board.
"""
home_board: Array = _home_board()
on_home_board = jnp.clip(board[home_board], a_min=0, a_max=15).sum()
on_home_board = jnp.clip(board[home_board], min=0, max=15).sum()
off = board[_off_idx()] # type: ignore
return (15 - off) == on_home_board

Expand Down

0 comments on commit bc9df9c

Please sign in to comment.