-
Notifications
You must be signed in to change notification settings - Fork 703
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
Calling a move when a phase begins #1145
Comments
instead of performing the eoy stuff in a move, you can just put it in the onEnd of annualWork. alternatively you can make the client just auto do the move for you once it detects you're in that phase. |
Is it possible to access moves inside onEnd? I wasn't able to access the method. |
You don't need the move- you can just directly do what the move does. If your moves are already separate functions you can just call it |
I am unable to access the move functions inside
This is the typescript error I get:
|
What I did for things that sometimes were automatic and sometimes werent was more like:
in your use case yoiu mnay noit even need to do the move itself-:
|
Thanks, @webrunner42 . That worked. |
Hi, I have a game with the following phases:
The game starts with everyone in phase 1, then they go to phase 2 at each time step. At the end of each phase 2, the game needs to make some calculations (e.g. updating budgets for players, etc.); so I have that as a separate phase (performEOY) with only one move:
calculateEOY
. Is there a way for me to call this move from theonBegin
section of the performEOY phase?This third phase is basically an automatic phase for running backend queries. Any ideas on how best to do this?
The text was updated successfully, but these errors were encountered: