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

Implement two rounds of day voting #11

Open
hiper2d opened this issue Mar 17, 2024 · 0 comments
Open

Implement two rounds of day voting #11

hiper2d opened this issue Mar 17, 2024 · 0 comments
Assignees

Comments

@hiper2d
Copy link
Owner

hiper2d commented Mar 17, 2024

Here is the plan:

  • A user can start the first round of voting. This is implemented via a button on UI but it requires a little change. Currently, players vote secretly. We should display votes in the chat.
  • After the first round is done, leaders should speak for themself. It the human player is among them, a dialog window should appear asking for a speech.
  • Then the second round should start automatically. It should also be open.

Update for the first phase [Apr 29, 2024]:

  • When the first phase of voting starts, UI takes all bot ids, adds some id for the human player, shuffles all of this, and starts picking ids from the list
  • Before everybody votes, UI sends a request to the backend to add a message to the chat history that the voting has started
  • For each bot id, ask the bot to vote, then post the response to the common chat (and add it to the history for all). This means that the voting is open, and each new voter can see the results of previous voters
  • When a human player needs to vote, a dialog appears. It asks to choose a name and to provide a reason. This is sent to the backend to be saved and posted to the chat
  • After everybody voted, UI calculates the leaders

The second phase should start automatically. Leaders should speak for themselves, and then everybody votes for the second time without providing reasons. The finalist is eliminated by adding information to the chat history and to the chat. The game state should be updated. Then the game night started.

Problems:

  • When the vote starts, this should change the game state. GAme reload should be able to continue from this state. Need to think how exactly.
@hiper2d hiper2d self-assigned this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant