Skip to content

Commit

Permalink
rm random.key
Browse files Browse the repository at this point in the history
  • Loading branch information
sotetsuk committed Nov 3, 2024
1 parent 09c385f commit 8549342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_animal_shogi.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def test_api():

def test_buggy_samples():
# https://github.com/sotetsuk/pgx/pull/1209
state = init(jax.random.key(0))
state = init(jax.random.PRNGKey(0))
state = step(state, 3 * 12 + 6) # White: Up PAWN
state = step(state, 0 * 12 + 11) # Black: Right Up Bishop
state = step(state, 8 * 12 + 1) # White: Drop PAWN to 1
Expand All @@ -248,7 +248,7 @@ def test_buggy_samples():
assert mask[LEFT_GOLD]

# https://github.com/sotetsuk/pgx/pull/1218
state = init(jax.random.key(0))
state = init(jax.random.PRNGKey(0))
state = step(state, 3 * 12 + 6) # White: Up PAWN
state = step(state, 0 * 12 + 11) # Black: Right Up Bishop
DROP_PAWN_TO_0 = 8 * 12 + 0
Expand Down

0 comments on commit 8549342

Please sign in to comment.