sotetsuk / pgx

♟️ Vectorized RL game environments in JAX
http://sotets.uk/pgx/
Apache License 2.0
372 stars 23 forks source link

Remove `player_id` argument in `Env.observe` #1154

Open sotetsuk opened 6 months ago

sotetsuk commented 6 months ago

While this feature is rarely used, it makes the implementation complicated.

import jax
import warnings

@jax.jit
def func(x=None):
    if x is not None:
        warnings.warn("This feature is deprecated", DeprecationWarning)
    return x

if __name__ == "__main__":
    print(func(3))
    print(func(2))
    print(func(4))
    print(func(5))