Coder Social home page Coder Social logo

durak's Introduction

durak's People

Contributors

dependabot[bot] avatar heinburger avatar murrayju avatar

Stargazers

 avatar

Watchers

 avatar  avatar

durak's Issues

Persist games to the db

Games are currently only stored in sever memory. They should be persisted to the db, and survive a server restart (deployment).

Animate card movement

Game will feel more interactive, and it'll be more clear what's happening in some cases.

player can see all cards sometimes

image

to reproduce
make a "table" with non-incog
create person
then open with incog the table link
start with non-incog
otherwise it seems like it works fine

add an undo

maybe people should have to vote to agree

Something something ids and keys

Warning: Encountered two children with the same key, 'X:X' - so this is flooding the console as I'm sure you are aware - the ids for the cards are not unique which makes this interesting

I'm just wondering what you thought process was here - I feel like if you build a deck, all the cards should be assigned a unique key and another attribute should control their state (flipped or not) - It seems like we are controlling both of these things with the id field. I think it is important to not show the card identity in the page's inspectable elements, so your approach makes sense, but there should be some kind of uuid, right?

Rename 'game' -> 'table'

Several things would be clarified if what is currently named 'game' were renamed to 'table'. A table is what gets a unique URL, and is what the players join. A given table can have multiple games (in series, not in parallel).

Observer cannot see players' hands

The cards are fanned out backwards, such that only the value of the top card can be read. They need to be fanned out in the opposite direction.

Move pick-up button to play area

It's too easy to accidentally click the pick up cards button where it is. It'll make more sense under the attacks in the play area.

Cleanup old games

Nothing ever removes games from the db, so they will accumulate. Some sort of cron job should delete old games that nobody is connected to.

keep player positions consistent on screen

People find it confusing when a player goes out, and the remaining players move around on the screen.
May be best to keep all of the players there in the same spot, and just indicate them as being out.

Lowest trump goes first

Current starting player is random, should be the player with the lowest trump.
This should somehow be revealed to the other players as well.

Clients should be able to choose to be a spectator

Currently, clients who join after the game has started are added as spectators, and will be players in the next round.
We should return to the lobby between games, and allow users to choose spectator/player.

Unique ids for obscured cards

This is mostly to enable animating the movement of obscured cards. Each card should have a unique (per deck) id that is unrelated to the card's value, and is available whether obscured or not.

Support players leaving the game

Players should be able to leave the game, and other players should be able to kick inactive players from the lobby.
This could be done somewhat automatically, with a timer around when the eventstream was last connected.

Show an action log

Might be helpful to show a running log of the actions that were taken. Maybe not a complete list of everything, but the last N actions.

Mobile layout gets cut off at bottom

Doesn't happen in the chrome dev tools simulator thingy, but does happen on a real phone. Seems to be caused by how the address bar is there and is supposed to disappear on scroll.

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.