Giter Club home page Giter Club logo

wordle-server's Issues

Update documentation

all events and endpoints should be updated in the README.md file of the project

Creating persistence Hub

  • Changes made on the game should be stored in some temp DB and fetched on game start
  • temp DB should be cleaned up on game close
  • store data in a file storage DB (badger, leveldb)

Improve logging

  • add zero log
  • print error messages created by the handler
  • print error messages created by the player conn
  • colored logs

Get room data returns 0 rank for all users

Exapmle response

 "game_performance": [
        {
            "rank": 0,
            "username": "deku",
            "guess_response": {
                "played_at": "2023-10-06T23:38:23.345368269Z",
                "status": [
                    3,
                    3,
                    3,
                    3,
                    3
                ]
            }
        },
        {
            "rank": 0,
            "username": "TomatoSoup",
            "guess_response": {
                "played_at": "2023-10-06T23:31:58.017079Z",
                "status": [
                    1,
                    1,
                    1,
                    3,
                    1
                ]
            }
        }
    ]

Stop passing correctMsg to end users

when fetching the details of a game, correct_word message is passed, and this is not necessary as all the user needs are his attempts. Besides, if the user has already guessed the word, (i.e. finished the game), he will be able to reconstruct the needed fields without hassle.

Return refresh token

  • Create a table in DB to store the refresh_token timestamp for each
  • Create a new endpoint refresh to generate new pairs of tokens (access, refresh).
  • If the sent token has a timestamp before than the one in DB then logout user

Add session comparator

  • users should be able to set the mode of the game and this will determine the leaderboard ranks

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.