Giter VIP home page Giter VIP logo

throneteki-client's Introduction

This repository is now archived and the client code can be found here

throneteki-client

The client code for Throneteki, a Web based implementation of A Game of Thrones LCG 2nd Edition

About

This is the one of the respositories for the code internally known as throneteki which is running on theironthrone.net allowing people to play AGoT 2nd edition online using only their browser.

Throneteki is split into multiple repositories to make the code more managable. This repository is for the client code.

Contributing

The code is written in node.js(server) and react.js(client). Feel free to make suggestions, implement new cards, refactor bits of the code that are a bit clunky(there's a few of those atm), raise pull requests or submit bug reports

If you are going to contribute code, try and follow the style of the existing code as much as possible and talk to me before engaging in any big refactors. Also bear in mind there is an .eslintrc file in the project so try to follow those rules. This linting will be enforced in the build checks and pull requests will not be merged if they fail checks.

Documentation for implementing cards

Issues

If you encounter any issues on the site or while playing games, please raise an issue with as much detail as possible.

Development

These instructions are only needed if you are actively working on the client.

git clone https://github.com/throneteki/throneteki-client.git
cd throneteki-client
npm install
npm run start

Coding Guidelines

All JavaScript code included in Throneteki should pass (no errors, no warnings) linting by ESLint, according to the rules defined in .eslintrc at the root of this repo. To manually check that that is indeed the case install ESLint and run

npm run lint

from repository's root.

Build Status

Travis Build

throneteki-client's People

Contributors

cavnak avatar cryogen avatar dependabot[bot] avatar duketax avatar evadlhorg avatar khyinn avatar mmeldo avatar nikolb avatar patane97 avatar perley avatar ystros avatar zacchiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

throneteki-client's Issues

Deckbuilder: Copy&Paste from thronesDB not working for specific cards

Cards like Eddard Stark (WotN) and Robert Baratheon (LMHR) are on the melee restricted list and show up as Eddard Stark (WotN) [M] and Robert Baratheon (LMHR) [M] on thronesDB. If i just copy&paste a deck with those cards to throneteki, they are not correctly imported even though #110 is done and deployed. Without digging further, i would say the combination of a card pack in () and a RL/BL marker in [] is the problem here.

Hidden areas should be shown when dragging cards

Currently, the shadow and out-of-game piles only display if there is at least 1 card in those piles. This makes it impossible to manually drag a card into those areas and makes people rely on awkward chat commands if they need to correct a mistake.

Deck editor crashes when trying to identify (wrong/mispelled) banners

When trying to identify the banners associated to an Alliance deck, and one of the Banners is unknown or mispelled deck editor crashes.

This happen also sistematically when Copying and Pasting from thronesdb an Alliance deck cause before the line with Packs: there are other lines like that are not banners nor the Alliance agenda itself.
for example:
Draw deck: 75 cards
Plot deck: 7 cards
The procedure assumes they are banners and tries to code them (causing the crash I presume).

To reproduce the crash copy and paste this in the deck editor:

Deck Greyjoy
House Greyjoy
Alliance
Banner of the Sun
Banner of the Wolf
Draw deck: 75 cards
Plot deck: 7 cards
Packs:

To avoid the crash remove the Draw deck and Plot deck lines

Deck Greyjoy
House Greyjoy
Alliance
Banner of the Sun
Banner of the Wolf
Packs:

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.