Git Product home page Git Product logo

durak-cards's People

Contributors

dependabot[bot] avatar feds01 avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

durak-cards's Issues

Server crash on stale connection

Crash report:

2021-01-16T17:58:39.105719+00:00 app[web.1]: /app/src/socket/handlers/playerMove.js:177
2021-01-16T17:58:39.105729+00:00 app[web.1]: console.log("Stale connection on ".concat(lobby.pin, ": socketId=").concat(socketId, ", player=").concat(p.name));
2021-01-16T17:58:39.105729+00:00 app[web.1]: ^
2021-01-16T17:58:39.105730+00:00 app[web.1]: 
2021-01-16T17:58:39.105731+00:00 app[web.1]: ReferenceError: p is not defined
2021-01-16T17:58:39.105731+00:00 app[web.1]: at forEach (/app/src/socket/handlers/playerMove.js:114:91)
2021-01-16T17:58:39.105732+00:00 app[web.1]: at Map.forEach (<anonymous>)
2021-01-16T17:58:39.105732+00:00 app[web.1]: at _callee$ (/app/src/socket/handlers/playerMove.js:103:18)
2021-01-16T17:58:39.105733+00:00 app[web.1]: at tryCatch (/app/node_modules/regenerator-runtime/runtime.js:63:40)
2021-01-16T17:58:39.105733+00:00 app[web.1]: at Generator.invoke [as _invoke] (/app/node_modules/regenerator-runtime/runtime.js:293:22)
2021-01-16T17:58:39.105734+00:00 app[web.1]: at Generator.next (/app/node_modules/regenerator-runtime/runtime.js:118:21)
2021-01-16T17:58:39.105734+00:00 app[web.1]: at asyncGeneratorStep (/app/src/socket/handlers/playerMove.js:22:103)
2021-01-16T17:58:39.105735+00:00 app[web.1]: at _next (/app/src/socket/handlers/playerMove.js:24:194)
2021-01-16T17:58:39.105735+00:00 app[web.1]: at processTicksAndRejections (node:internal/process/task_queues:94:5)

Spectator view

Players who didn't join in the lobby should be able to spectate the game despite not participating in the actual game.

Page scrolling

Page has both vertical and horizontal scroll bars. There is blank space when scrolling to the right.
issue

Create a simple lobby UI for displaying the table and player's deck

  • Display the player's deck.
  • Display and allow the player to interact with the player deck.
  • Display the game deck including the trump card.
  • Display other users including information about who is defending, how many cards each player has, and who had skipped the turn.

Add user registration route

  • Add registration route for new users to use.
  • Add small widget on the home page to direct users to 'register' or 'login' if they wish (bottom of the page'.
  • Improve login page to reflect the style of the app and add a link to 'register account' page.

Bug occurred when sorting cards and at the end of the game.

Stack trace:

TypeError: Cannot read property 'deck' of undefined
    at Wt (https://durachok.herokuapp.com/static/js/main.1c08808f.chunk.js:1:32482)
    at https://durachok.herokuapp.com/static/js/main.1c08808f.chunk.js:1:59346
    at Array.some (<anonymous>)
    at https://durachok.herokuapp.com/static/js/main.1c08808f.chunk.js:1:59321
    at Array.map (<anonymous>)
    at https://durachok.herokuapp.com/static/js/main.1c08808f.chunk.js:1:59264
    at https://durachok.herokuapp.com/static/js/main.1c08808f.chunk.js:1:59499
    at Ds (https://durachok.herokuapp.com/static/js/2.d093eaf0.chunk.js:2:592187)
    at t.unstable_runWithPriority (https://durachok.herokuapp.com/static/js/2.d093eaf0.chunk.js:2:610000)
    at Ho (https://durachok.herokuapp.com/static/js/2.d093eaf0.chunk.js:2:532358)```

Chat feature enhancements

  • Users should be able to resize the chat window by dragging its left border to the left or right
  • The chat should always stay scrolled with the newest message at the bottom (doesn't do this when messages are spammed)

Player resign option

Players should have the ability to resign from a game.

  • When a player resigns, their cards should be placed at the bottom of the pile. ( We could possibly make this configurable behaviour)

  • Players can be removed by the admin in the same way as the 'kick' option removes a player from the lobby.

Stuck on joining lobby when already joined on IP

When attempting to join a lobby from the same IP address (any device on your LAN with the same IP address, not necessarily the same device), the game gets stuck on the joining lobby screen rather than displaying a useful error.

Card play suggestions

If feature enabled, the game should recommend players what cards they can play by highlighting them green in the player deck.

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.