# Games

URL: https://zerodev.ca/docs/medusa/modules/games

> Mini-games against members or the bot, casino games that bet coins, and prediction pools.



Games adds things to play in chat. Every game is a subcommand of `/game` and draws its board as an image.

## Mini-Games

| Command                          | What it does                                                                       |
| -------------------------------- | ---------------------------------------------------------------------------------- |
| `/game tictactoe [opponent]`     | Tic-Tac-Toe against a member or the bot.                                           |
| `/game connect4 [opponent]`      | Connect 4 against a member or the bot.                                             |
| `/game rps [opponent]`           | Rock Paper Scissors against a member or the bot.                                   |
| `/game minesweeper [difficulty]` | Easy is 6x6 with 5 mines, Medium 8x8 with 10, Hard 9x9 with 15.                    |
| `/game wordle <guess>`           | Guess the five-letter word. Run it again for each guess.                           |
| `/game hangman`                  | Guess the hidden word letter by letter before six wrong guesses.                   |
| `/game truthordare [type]`       | Interactive Truth or Dare prompts with Truth, Dare and Random buttons.             |
| `/game trivia [category]`        | A trivia question from Science, Technology, History, Gaming, Geography or General. |
| `/game 8ball <question>`         | Ask the magic 8-ball.                                                              |
| `/game roll [sides]`             | Roll a die. Six sides by default.                                                  |
| `/game ship <first> [second]`    | Rate how well two members match.                                                   |
| `/game iq [user]`                | Give a member a joke IQ score.                                                     |
| `/game roast <user>`             | Roast a member.                                                                    |
| `/game joke`                     | Tell a joke.                                                                       |

## Casino Games

Casino games bet coins from the member's Economy wallet. Without the Economy module, they reply with an error and the other games still work. Bets must be between **Minimum Gambling Bet** and **Maximum Gambling Bet**.

| Command                            | Payout                                                                                  |
| ---------------------------------- | --------------------------------------------------------------------------------------- |
| `/game coinflip <amount> <side>`   | 2x when the coin lands on your side.                                                    |
| `/game dice <amount> <prediction>` | 2x for over or under 7, 4x for exactly 7.                                               |
| `/game roulette <amount> <space>`  | 2x for red, black, even or odd, 36x for a single number from 0 to 36.                   |
| `/game slots <amount>`             | Three sevens 25x, three gems 15x, three bells 10x, any other three 5x, any two 2x.      |
| `/game crash <amount> <target>`    | Your bet times the target if the multiplier reaches it before crashing.                 |
| `/game blackjack <amount>`         | Hit, stand or double down against the dealer.                                           |
| `/game russianroulette <amount>`   | Pull the trigger across a six-chamber cylinder for up to 6x your bet or cash out early. |

## Predictions

A prediction is a pool with two outcomes. Members bet coins with the buttons on the prediction or with `/predict bet`. When it is resolved, the whole pool is split between the winners in proportion to their bets.

| Command                                                    | What it does                                                    |
| ---------------------------------------------------------- | --------------------------------------------------------------- |
| `/predict create <title> <option_a> <option_b> [duration]` | Open a prediction. Betting stays open for 5 minutes by default. |
| `/predict bet <id> <option> <amount>`                      | Bet on an outcome.                                              |
| `/predict view <id>`                                       | Show the pool and odds.                                         |
| `/predict lock <id>`                                       | Close betting early.                                            |
| `/predict resolve <id> <winner>`                           | Pick the winner and pay out.                                    |
| `/predict cancel <id>`                                     | Cancel and refund every bet.                                    |

Lock, resolve and cancel need the &#x2A;*Games ( Predictions )** permission or Manage Server.

## Settings

| Setting                        | Default | What it does                             |
| ------------------------------ | ------- | ---------------------------------------- |
| Minimum Gambling Bet           | 10      | Smallest bet allowed.                    |
| Maximum Gambling Bet           | 50000   | Largest bet allowed.                     |
| Default Minesweeper Difficulty | Medium  | Board used when no difficulty is picked. |

## Stats

Wins and losses are tracked per game. Right-click a member, then **Apps > Game Stats**, to see theirs. This is off by default on the **Commands** page. `/leaderboard` has a **Game Wins** board. The **Game Events** log records finished matches and resolved bets.
