Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CC Interhack Backend

Backend for Interhack

TODO:

  • Setup basic script

  • Find a functioning AI model

  • Implement the AI model

  • Improve system prompt

  • Get the model to hold context

  • Generate better stories

  • Add VIT guidelines

  • Improve VIT guidelines

  • Implement multiplayer (turn-based system)

  • Refine multiplayer mechanics

πŸ“‘ API Endpoints

Method Endpoint Request Format Response Format
POST /addplayers { "player_names": ["<player1>", "<player2>", ...] } { "message": "Players added successfully.", "current_players": ["<player1>", "<player2>", ...], "current_turn": "<player>" }
POST /generate { "user_input": "<optional-character-trait>" } { "character_story": "<generated-story>", "current_turn": "<player>" }
POST /continue { "previous_story": "<story-generated-in-the-previous-step>", "user_choice": "<optional-choice-made-by-the-user>", "end_story": "True" | "False" (default: "False") } { "character_story": "<continued-story>", "current_turn": "<next-player>" }

πŸ“ Notes:

  • Turn-based Multiplayer: The system cycles through players, allowing each to contribute to the story sequentially.
  • Context Retention: The AI remembers previous events and choices to maintain continuity.
  • VIT-Themed Stories: Stories are set in VIT, incorporating campus culture, rules, and references.

About

backend in python. yes.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages