Git Product home page Git Product logo

cartographers's Introduction

Cartographers Score Card

This is a score card for the board game Cartographers by Thunderworks Games.

[Get the board game].

The score cards should let you play remotely, with a zoom/skype/hangouts call for the actual, like, human interaction part -- someone to flip and show the cards, etc.

[Go to the score card]

Included stuff

  • a slightly modified version of Alexey Kryazhev's [ispinjs] library.

  • Many of the tile patterns are from Lea Verou's amazing [gallery] of CSS gradients.

  • Google's [Firebase], to network players together.

  • Valve's creepy [fingerprint2] broswer tracker. This is to make (mostly) unique id's for players without their need to do anything. This lets lots of players call themselves short normal names like "Ed", instead of "Ed__234567".

Code Style, compatibility

Written in a bog-standard es5 flavor of javascript.

Had I known at the beginning I was going to add network interaction, I may have rethought that, maybe used React or Svelte. But the surface area is just not that large. And really, the Firebase client is all about promise-style callbacks anyway, it fits fine in an es5 workflow.

I used the DOM element classlist method. Even IE10 sortof supports that? However, I can't say it's tested much outside of recent Chrome, Firefox & IE Edge.

There are no modules or requires, but the app is chopped into a few pieces. Files past 800 lines I find increasingly annoying to work with. Also, the module or pseudo-module interface helps one think in discrete chunks. To bridge the pieces together, the app shares three global objects:

constants = { ... }   
methods = { ... }  
uxState = { ... } 

Due to the libraries involved, ISpin, Fingerprint2 and firebase are also global objects.

cartographers's People

Contributors

mattsahr avatar chardila avatar

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.