Git Product home page Git Product logo

werewolf-ai-party-game's Issues

Implement LLM Type Selection in New Game dialog

First, let's make Claude agent suitable for Bot Players. There is one problem with that described in the ClaudeAgent class in a comment.

Then, let's add a selection to the New Game dialog for GM and Bot Players types. Not sure yet how. Maybe this way: how many GPT-4 bots and Claude bots should be in the game. A bot type should be persisted to the database so it can be restored on load. Yeah... lots of work actually. But this is a super cool feature I must add.

Implement two rounds of day voting

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.

Implement Game Loading

Add functionality to the All Games menu item:

  • Open a modal window with a list of all games (no pagination or sort for now) sorted by creation date DESC
  • Allow to select a game
  • Load the selected game with the corresponding chat history

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.