Giter Site home page Giter Site logo

reednaa / agreentable Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 329 KB

A table top with playing cards. Happens to also be green.

Home Page: https://green.vav.me

JavaScript 2.79% CSS 0.09% HTML 1.25% Svelte 55.94% TypeScript 39.92%
card cards card-game playing-cards playingcards playing-card-games playing-card-game tabletop

agreentable's Introduction

Table top with a card deck implemented in Svelte + Sveltekit using tailwindcss. Connectivity is implemented with websockets.

How to use

  • Lift cards by clicking on the edge. This allows you to move it. On movement, the position is updated for other plays. Clicking places the card down.

  • Group cards by moving them on top of each other.

  • Remove the first card by clicking on the middle.

  • Create a card stack by click on the lock of a card face. Adding cards (by moving them onto it) will place it directly on top.

Game Rules

Game rules can be implemented in the utils/rules.ts. The functions are called before actions are taken. If a rule returns true action will be taken.

Svelte Adapter

The static adapter is used. This allows easy deployment to any service deploying static sites.

The deployment green.vav.me is currently hosted by Cloudflare Pages

Developing

This repository uses pnpm. In general, pnpm can be replaced by npm, however npm cannot read pnpm lock files. This is somewhat of an issue because we depend on @sveltejs/kit = next and @sveltejs/adapter-static = next which sometimes introduces breaking changes.

Dev server

pnpm dev

Building

To create a production version of your app:

pnpm build

The production build can be previewed by pnpm run preview.

agreentable's People

Contributors

reednaa avatar

Stargazers

 avatar  avatar

Watchers

 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.