Coder Social home page Coder Social logo

spectrangle-protocol's People

Contributors

anneheijink avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

spectrangle-protocol's Issues

irtroduce ALLTILE

it is a simple command for the start of the game;

ALLTILE ,[tile],[tile] ...

(doreach player

Tile Command

when sending a tile upsidedown, instead of keeping the rotation counterclockwise change it to it's mirror,
this will cause the left neighbour of RBG0 to always be G (no matter if upsidedown or not)
this will cause the right neighbour of RBG0 to always be B (no matter if upsidedown or not)
this will cause the top/ bot neighbour of RBG0 to always be R (no matter if upsidedown or not)

for rotation you can then use; .charAt(<>)

  • top/bot: (0 + rotation) % 3
  • right: (1 + rotation) % 3
  • left: (2 + rotation) % 3

this is 100000% way more efficient when coding

SERVERMESSAGE

when something happens that is interesting to all players connected to the server like:

SERVERMESSAGE : has joined

or

SERVERMESSAGE : [player] ... are waiting for a game

MOVE command

It was decided the move-command to be overloaded, the example does have it implemented in the correct way;

the command should be: MOVE [tile] [location]
so:

  • when you play a tile you send for example: MOVE RGB0 5
  • when you swap you send: MOVE RGB0
  • when you skip you send: MOVE

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.