Coder Social home page Coder Social logo

vibothe / hansa_teutonica Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skid/hansa

0.0 0.0 0.0 135 KB

implementation of base map of hansa teutonica boardgame

Home Page: hansa.vercel.app

Shell 0.31% JavaScript 0.02% TypeScript 94.80% SCSS 4.87%

hansa_teutonica's Introduction

Hansa Teutonica online

Run it

  • Just clone and yarn and yarn dev
  • Play with your console open

Frontend

  • State managed with immer.js
  • Game logic runs entirely on frontend
  • Graphics done with simple React SVG

Backend

  • The backend is handled by supabase.
  • When you create a game, you get a UUID (the game's id). Use this URL (hansa-teutonica.com/games/<game-uuid>) to get the invite links for each player. If you forget the game's ID, it's lost - create a new one.
  • Each player gets a unique link to the game hansa-teutonica.com/play/<player-uuid>.
  • A game is directly created from the React frontend. You get a redirect to the game details page, and you can share links to other players.
  • Other players load the game via their unique player link.
  • Their moves overwrite the game state, so they can fuck up (or hack) the game for everyone.

TODO

  • Alert when it's your turn to make a move (either place displaced tokens or your turn has started)

hansa_teutonica's People

Contributors

skid 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.