-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat(contract): implement end_turn #37
Conversation
rkdud007
commented
Aug 10, 2023
•
edited
Loading
edited
- end_game _system
- When someone scored a goal, call this system
- Reset round and update player score
- A player has won 2 rounds the game ends
- Emit EndGame
- end_game_test
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
currently end_game_test cause this error : dojoengine/dojo#737 |
can you format plz ? |
@LucasLvy , Base on your comment I might confused about Round/Game/Turn terms. Here's my understanding--correct me if i'm wrong:
If this is correct, I would implement all in
|
agree with everything you said, and indeed the |
If we need to track each status of Round also, we need Round as Component ( to store each outcome) . But if we do not need to track it, Then can just use original Game format :) Round
Game
|
I don't think we need to track them. There will be events that the frontend can listen to but we don't need details onchain the scores will be enough |
Decided to wait until
|
after looking at current implemention codes,
So just implemented turn switch and end game base on score |
@rkdud007 is attempting to deploy a commit to the keep-starknet-strange Team on Vercel. A member of the Team first needs to authorize it. |