Giter Site home page Giter Site logo

geo-escape-bot's Introduction

geo-escape-bot

A Discord bot that plays a cooperative scavenger hunt game! For Puzzle project in Foundations of Game Design

Play a cooperative scavenger hunt game over Discord.

  • Player 1 - Wakes up with amnesia, locked in a room. They can send messages to Player 2, but their phone is acting strange and is losing battery. Each clue solved jogs Player 1's memory of what happened the day before and can send Player 2 hints on where to go next.
  • Player 2 - Trying to find location of Player 1 by retracing their steps through hazy memories.

How to play

  • Discord bot is hosted on Repl.it web server. Visit https://replit.com/@zajacje/geo-escape-bot#main.py and run. Add bot to server. Update CHANNEL_ID with Discord channel to play in.
  • Alternatively, start UptimeRobot monitor to keep the bot active, even when Repl.it tab is closed.
  • 2 users react to welcome message to choose role (Player 1 or Player 2)
  • Player 1 is DM'd with a clue/memory fragment. They must give hints to Player 2 on where to go next using a limited number of words. Messages that are too long get deleted.
  • Player 2 will try to determine the location and walk there. They must type in the channel the missing word to complete the memory.
  • Each message exchanged in the play channel decrements Player 1's battery life. Once the battery reaches 0, the game is over. Try to find Player 1 before battery runs out!
  • If all clues are solved, congrats! You win!

Development Notes & Files

Made using discord.py library and hosted on Repl.it

main.py

  • Runs the game. Configure game with constants at the top.

clues.py

  • Stored as a list of tuples representing (clue, answer). The clues are presented in order. The next clue is given after the current clue is answered.

TO DO

  • Use PLAYING to end the game when battery ends. Can play multiple rounds without resetting bot?
  • Host bot elsewhere so it can always be run

geo-escape-bot's People

Contributors

zajacje avatar

Watchers

 avatar

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.