Coder Social home page Coder Social logo

markjbyrne81 / ringteki Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gryffon/ringteki

0.0 1.0 0.0 23.63 MB

A browser based way to play the Legend of the Five Rings LCG

Home Page: https://jigoku.online

License: MIT License

JavaScript 98.16% CSS 1.80% HTML 0.04%

ringteki's Introduction

Ringteki

Web based implementation of The Legend of the Five Rings LCG

FAQ

What is it?

This is the respository for the code internally known as ringteki which is running on jigoku.online allowing people to play L5R LCG online using only their browser

Does't this look a lot like Jinteki/Throneteki? The Android netrunner/AGOT online experience?

Glad you noticed! Yes, jinteki was a huge inspiration for this project, as the interface is clean and user friendly, so I've tried to make this similar in a lot of ways

Ringteki is a fork of the throneteki sourcecode

Can I contribute?

Sure! 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.

Documentation for implementing cards

There is also a list of events raised by the code here. If you're writing abilities which listen for these events, it tells you what parameters the event has and whether it has a handler. If you're writing code which calls any of these events, please make sure you pass the same parameters.

The biggest help at the moment would be in terms of CSS, as that's a bit of a weakness of mine, feel free to pick up any of the issues tagged 'CSS' in the issue list.

If you're not coding inclined, then just playing games on the site, and reporting bugs and issues that you find is a big help

X Y Z doesn't work

That's not a question, but that still sucks, sorry :( First, bear in mind the site is in its infancy so a lot of things aren't implemented yet, but you should be able to do most things with a bit of manual input. If there's anything you can't do that you need to be able to do, let me know by raising an issue.

See this document for features I have planned and a link to the currently implemented cards:

How do I do X Y Z?

Check out the About page of a Ringteki live deployment.

Development

Required Software

  • Git
  • Node.js 8
  • MongoDB
  • ZeroMQ Libraries
Clone the repository
git submodule init
git submodule update
npm install # See https://github.com/JustinTulloss/zeromq.node/issues/283 for zmq errors on OS X
mkdir server/logs
node server/scripts/fetchdata.js
node .
node server/gamenode

There are two exectuable components and you'll need to configure/run both to run a local server. First is the lobby server and then there are game nodes. The default configurations assume you are running mongo locally on the default port. If you need to change any configurations, edit config/default.json5 or create a config/local.json5 configuration that overrides any desired settings.

For production:

npm run build
NODE_ENV=production PORT=4000 node .

Then for each game node (typically one per CPU/core):

PORT={port} SERVER={node-name} node server/gamenode

Coding Guidelines

All JavaScript code included in Ringteki 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

eslint client/ server/ test/

from repository's root.

All tests should also pass. To run these manually do:

npm test

If you are making any game engine changes, these will not be accepted without unit tests to cover them.

Sentry.io Project

Sentry.io - RingTeki

Build Status

Travis Build

Discord Discusson

Ringteki Discord Server

Coveralls.io

Coverage Status

ringteki's People

Contributors

admanb avatar alex-whitney avatar artemmikhalitsin avatar bwootten avatar cavnak avatar cdmayberry avatar codebaboon avatar cody1024d avatar cryogen avatar dahrasz avatar devofdisaster avatar duketax avatar gryffon avatar ifightdragons avatar jeremylarner avatar johnwaltz avatar kwaice avatar markjbyrne81 avatar noahtheduke avatar perley avatar petarpetkov avatar peterh139 avatar saelvarath avatar simcof avatar snarkattack avatar syrail avatar xworkerbeex avatar ystros avatar zacchiro avatar zacharyp 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.