Git Product home page Git Product logo

duel-masters's Introduction

duel-masters

A multiplayer browser based simulator for the Duel Masters Trading Card Game

Warning

We are not affiliated with the Duel Masters trademark or its rightful owner Wizards of the Coast and only strive to make it possible to play the original English version of the card game from 2004-2006 the same way you would be playing it with friends in real life.

What it is

  • Aims to simulate how you would be playing the card game in real life
  • Multiplayer & matchmaking
  • Enforced rules for fair and competetive play
  • Automation for all card effects and actions
  • Deck building
  • Currently 400+ cards implemented

What it is not

  • A full fledged Duel Masters game with fancy animations and career modes similar to Heartstone, MTG Arena etc.

Run with docker

# Login to the github package registry
docker login ghcr.io

# Run the container
docker run -d \
    --name duel-masters \
    --restart unless-stopped \
    -p 80:80 \
    -e port=80 \
    -e mongo_name=<mongodb_name> \
    -e mongo_uri=<mongodb_connection_string> \
    ghcr.io/sindreslungaard/duel-masters/production:latest

Development

  1. Clone the repository

  2. Set up MongoDB locally or use a cloud provider

  3. Create an .env file in the root directory based on the .env.default file in the repository

port=80
mongo_uri=mongodb://127.0.0.1:27017
mongo_name='duel-masters'
restart_after=
  1. Build the webapp
    cd webapp
    npm install
    npm run build
    or
    npm run watch to rebuild every time a change is made

  2. Run the application. If you're using vscode simply press F5 or Run -> Start Debugging. To run manually use go run cmd/duel-masters/main.go. Note that debugging with vscode will automatically pick up environment variables from the .env file. If you're not using vscode's debug mode or if you are using a different editor you will have to make sure the necessary environment variables are set.

  3. Navigate to http://localhost and create a user as well as a deck. To set the deck as a standard deck, find it in the database and change the standard field to true.

Contributing

Please read through the contribution guidelines before submitting a pull request

Changelog

A changelog starting from 11/11/2021 can be found here

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.