Games#
general#
This section provides an overview of the game mechanics, including how to start a game, manage quests, and handle player interactions.
games#
Important
Currently only only one game is available with the name “Fast and hungry, task hunt”.
But there are plans to add more games in the future and the merge of game The great base-off
from a past tournament.
Name |
Status |
Description |
---|---|---|
Fast and hungry, task hunt |
In progress |
Complete all tasks and survive. The game ends as soon as one player has completed all tasks. |
The great base-off |
In progress |
Survive for a year and earn points for upgrading your base. |
Mixed martial starves |
Idea |
game status workflow#
functions#
This file contains all logic for creating a game and managing the game state.
- class src.game.GameStats[source]#
Class to store the game statistics and values to process the workflow.
- class src.game.GameConfig(name, game_emojis)[source]#
General GameConfig class to store the configuration for a game.
- async src.game.failed_game(config, game)[source]#
Helper function to stop a game in case that a wrong input has been givin in selection menu and set the game status to FAILURE.
- async src.game.create_quests(config, player, game, tasks)[source]#
Function to get the quests for a player based on the playing hours.
- async src.game.generate_league_table(config)[source]#
Function to generate the league table for the players based ranks.
- Parameters:
config (Configuration) – App configuration
- Return type:
- async src.game.show_league_table(interaction, config)[source]#
Function to show the league table in the Discord channel.
- Parameters:
interaction (Interaction) – Interaction object to respond to the command
config (Configuration) – App configuration
- Return type: