Giter VIP home page Giter VIP logo

doppelkopf's Introduction

Doppelkopf

Build Status

An in-browser implementation of the traditional German Doppelkopf card game.

Live Demo

The game is still in early stages. Playing it will probably be a frustrating and confusing experience. If you're curious enough to give it a try (and play against a really shitty AI), I encourage you to do so:

Screenshot

Development

This game is implemented using ES2017. The source code is transpiled using Babel and bundled and loaded with Webpack. The frontend is written in vue.js.

The backend part is written in Python and using the Flask microframework.

Getting Started

Install frontend and backend dependencies:

$ yarn install
$ pipenv install --dev

To serve the frontend as a standalone application, run

$ yarn serve

To start the backend, run

$ make run

Run Tests

Tests for both, frontend and backend, are included in the test directory. Backend tests are implemented with pytest, frontend tests with Jest.

To run the frontend tests, use

$ yarn test:unit
$ yarn test:e2e

Backend tests can be run with

$ make test

Storybook

The application uses storybook.js to showcase all vue.js components in different states. You can use the storybook to take a look at components and use it as a visual test case. It's great for getting fast feedback when designing components.

For new components, add a new story to src/stories.

You can view the storybook by running

$ yarn storybook

and then pointing your browser to localhost:6006

More Helpful Commands

Build the frontend application for production, with minification:

$ yarn build

Build for production and view the bundle analyzer report

$ yarn build --report

doppelkopf's People

Contributors

hamvocke avatar lkoehl 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.