-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mahjong] 副露の実装 #921
[Mahjong] 副露の実装 #921
Conversation
同時に生じる場合、ポンorカン→チーの順で処理(2人以上が同時にポンすることはありえない、チーは下家しか不可) |
そもそもplayerが順に回らない、をどう扱うか。先代はstepの引数に ex. pon
|
make_jaxprの行数比較full_mahjongが import jax
from pgx._mahjong._action import Action
from pgx.experimental.mahjong.full_mahjong import State
key = jax.random.PRNGKey(0)
state = State.init(key)
exp = jax.make_jaxpr(State._step)(state, 0, Action.TSUMOGIRI)
n_line = len(str(exp).split("\n"))
print("old", n_line)
from pgx._mahjong._mahjong2 import Mahjong
env = Mahjong()
key = jax.random.PRNGKey(0)
state = env.init(key=key)
exp = jax.make_jaxpr(env.step)(state, Action.TSUMOGIRI)
n_line = len(str(exp).split("\n"))
print("new", n_line)
|
残り
くらい? |
current_playerを定める方をmahjong2としています |
@sotetsuk Lines 29 to 81 in 01c7c04
|
このPRはマージ可能です |
@OkanoShinri マージしちゃってください! |
No description provided.