Giter Club home page Giter Club logo

pokeclicker-backend's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pokeclicker-backend's Issues

Redis-side gather rate is overestimated

Steps to reproduce:

  1. Buy a bunch of boosterpacks
  2. Read/write down the current gather rate
  3. Erase the gather rate key from Redis
  4. Wait for the update
  5. Compare the new gather rate with the one you wrote down, it's much lower than the previous

I'm assuming the gather rate hincrby command that is sent to Redis is not the same as the sum of XP over all bought pokemon.

Add CORS headers to API views

In the API responses, the CORS headers (Access-Control-*) should be set appropriately in order for the front end app to be able to access the API. Access-Control-Allow-Origin should be configurable via environment variables.

Implement booster pack opening

We decided to base the booster pack editions on the regions of the PKMN games since each region offers a list of PKMN that can be encountered there. Thus, a random selection of five PKMN will be part of a booster pack.
Additionally, legendary PKMN which do not have natural encounters should randomly be added to booster packs with sub-10% drop chance. Moreover, items could be used to temporarily increase this percentage.

Implement Pokémon's PokéDollar gather rate calculation

PokéAPI has an endpoint for getting the stats (HP, Attack, Defense, Sp. Attack, Sp. Defense, Speed) of a pokemon, given the type and its level.

A formula should be defined and implemented that uses these stats to calculate a fair gather rate.

Initialize SQL tables via `exposed`

We already constructed some first database models during #2.
The next step of this issue should be to test if the exposed ORM is actually fulfilling our purposes.

Create an adapter for the PokéAPI

We decided that we don't want to store any redundant data from the PokéAPI in our own database.
Thus, an adapter that essentially maps the internal IDs of the API is mandatory.

Implement user authentication

It is planned to use Google (or another service's) OAuth to create a new user account and to log in respectively.

Travelling between regions

Location-Area's in the PokeApi have a reference to the Location they are in. The location has a reference to the Region they belong too. Every region has their own counting of the game_index field, which determines how late in the game you'd encounter these pokemon. This is valuable for determining booster pack value and level of the pokemon inside. We should create different regions the user can travel in between, to make the user able to collect different generations of pokemon in a structured way.

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.