Giter Site home page Giter Site logo

mlnrdev / flagguessr Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 460 KB

Guess the country by its flag on Discord.

Home Page: https://discord.com/oauth2/authorize?client_id=1007647563790417960

License: GNU General Public License v3.0

Go 100.00%
hacktoberfest

flagguessr's Introduction

FlagGuessr

FlagGuessr is a minigame Discord bot about guessing countries based on their flag and hints related to the country.

Features

Hints

  1. Driving side
  2. Population
  3. Capitals
  4. Top Level Domains

Options

  1. Difficulty (Normal & Hard) - on Hard difficulty, guessing a country incorrectly will result in immediately losing the streak
  2. Minimum population - predefined set of populations to filter countries
  3. Hide - whether the game embeds should only be visible to the user

Ideas for expansion

  1. Leaderboard system

Ready to play?

Invite Flag Guessr using this link.

Have a question, suggestion or a concern?

Join the support server.

Technical details

Flag Guessr is completely stateless - information about games is stored in buttons/modals as JSON. This means that there is no database and users don't lose their progress after bot restarts (unless they delete the embeds).

{
   "u":"244563286257827840",
   "d":0,
   "m":10000000,
   "i":22,
   "e":false,
   "s":1,
   "a":0,
   "h":0
}
{
   "d":0,
   "m":10000000,
   "i":22,
   "e":false,
   "s":1
}

Breakdown

u: user ID, used for checking who can interact with the game embed

d: difficulty (0 = Normal, 1 = Hard)

m: minimum population

i: index of the country in the slice, used for getting details

e: whether the game embeds should be ephemeral

s: current streak

a: action the button should execute

h: current hint

flagguessr's People

Contributors

dependabot[bot] avatar sebm253 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.