Git Product home page Git Product logo

starfleet's People

Contributors

alphar0meo avatar jordan-000 avatar lukaus avatar lukexorz avatar rodd-burr avatar

Stargazers

 avatar

Watchers

 avatar

starfleet's Issues

Enforce turn-based system

  • Server and client should each have a concept of which client's turn it is
  • Server should not honor requests to change the game state from non-admin clients while it is not their turn
  • Clients need an "End Turn" button.
  • The server likely also needs a copy of the game state at the beginning of each turn that it can send to non-admin clients. This will allow admin clients to see what a non-admin client is doing on their turn before the "End Turn" option is selected,
  • Clients should have access to information aspects of the game state while it is not their turn, but only be able to modify the game state during their turn.
  • Admin client should have the ability to assign and unassign other admin clients, and independently define whether a client can see the 'between turn' game state
  • ships need to have client id indicating ownership. Only admin clients can edit state of ships that they do not own

Finish basic client-server communication

Client and server are now talking, but

Server needs to:

  • Send master-list to all clients when ships updated
  • Receive client's ship list and update the master list ONLY on the client's ship that sent the update
    • this will mean there needs to be some sort of better/secure client authorization at some point, but they can be identified by client socket for now

Client needs to:

  • Update game state when ship array arrives from server

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.