Giter Club home page Giter Club logo

royalurclient's Introduction

๐ŸŽฒ The Royal Game of Ur

A website for playing the ancient Mesopatamian board game, the Royal Game of Ur!

This repository holds the client code for The Royal Game of Ur, https://royalur.net. The server code of The Royal Game of Ur can be found in the RoyalUrServer repository.

The Royal Game of Ur is based upon an ancient Sumerian board game in the British Museum. The original board game can be dated to 2600 BC, and was discovered in a royal tomb in the city-state of Ur in ancient Mesopotamia. Learn more about the game on Wikipedia, or watch a fun match between Tom Scott and Irving Finkel on YouTube!

The game also has a Discord and a Reddit that you might want to check out! The Discord contains a changelog with a summary of all the changes being made to the website, as well as discussion about RoyalUr development.

ย 

๐Ÿ–ฅ๏ธ Compilation

This project uses Babel to transpile all Javascript to a single ES5 compatible file, as well as a Python script to generate the resource files needed for the site.

The following commands will compile the site to ./compiled:
./compile.sh release -- Full clean compilation, with minified JS.
./compile.sh dev -- No minification, no cleaning of ./compiled folder.

To install the NPM dependencies used in the compilation, run:
npm install

๐Ÿ“‚ Project Structure

/client/ contains the source files for the site, as well as site config files.
/client/js/ contains the JavaScript of the client.
/client/js/lib/ contains the JavaScript libraries used by the client.
package.json contains the NPM dependencies for compiling the site.
/compilation.json contains the specification for how to compile the project.
/compile.sh is a convenience script for running compile.py and optionally post_compile.sh.
/compile.py is the Python script that actually performs the compilation.
/compiled/ is the directory where the site is compiled to.

๐Ÿ’พ Resource Files

The resource files of this project are not stored in git, but can be downloaded from https://royalur.net/res.zip. Place the res folder in the root folder of the project so that the compilation script can find it.

Alternatively, if you run the compilation script without the res folder in the root directory of the repository, the script will attempt to download it for you.

Updating your ./res folder

To update the contents of your ./res folder as the resources used by RoyalUrClient change, simply delete it and let the compilation script download it again for you.

๐Ÿ“ License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

royalurclient's People

Contributors

sothatsit avatar fuzzymannerz avatar

Watchers

James Cloos 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.