Skip to content
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

mjaiのserverとclientの関係をsurvey #27

Open
nissymori opened this issue Mar 8, 2021 · 2 comments
Open

mjaiのserverとclientの関係をsurvey #27

nissymori opened this issue Mar 8, 2021 · 2 comments

Comments

@nissymori
Copy link
Collaborator

No description provided.

@nissymori
Copy link
Collaborator Author

nissymori commented Mar 11, 2021

Server側では
TCPPlayer 4体と
ActiveGameクラスが立ち上がる。

Client側では
TCPClientGameクラスが4つ立ち上がり、ぞれぞれのクラスにコマンド(例えばshanten)に応じたplayer1体とnilを返すだけのPuppet Player 3体が立ち上がる

Server側のTCPPlayerとClient側のTCPClientGameはidで紐づいている。
Gameの進行はActiveGame, ClientGameそれぞれの内部変数@Actorを変えることで行っている。

@nissymori
Copy link
Collaborator Author

IMG_0885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant