Coder Social home page Coder Social logo

variantchan / splendor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hexanome-04/splendor

0.0 0.0 0.0 5.41 MB

An online multiplayer web-based implementation of the strategy game Splendor.

License: MIT License

JavaScript 16.19% Java 53.20% LiveScript 0.05% TypeScript 6.44% CSS 8.62% Astro 15.49%

splendor's Introduction

Splendor

An online multiplayer web-based implementation of the strategy game Splendor.

Frontend Tests Build with Maven

Features

  • Splendor with Orient Expansion
  • Splendor with Orient Expansion + Trading Routes
  • Splendor with Orient Expansion + Cities
  • Custom Noble and Custom City
  • Online multiplayer experience
  • Game spectator feature
  • Exciting animations

Getting Started

If you wish to only set up the game so that you may play it, see the instructions for setting up here.

See here if you wish to develop the frontend/backend.

Setup

Prerequisites

Ensure that you have all the necessary dependencies installed:

Ensure that the docker engine is up and running.

The LobbyService submodule must be initialized. Execute the following commands in the root of the project.

git submodule init
git submodule update

From the root of the project, navigate to the has-server-client directory.

cd setup/has-server-client

Start up the services using docker compose.

docker compose up --build

Note: The “--build” argument is necessary to ensure that the docker containers are up to date. Optionally, you may add the “-d” argument to launch all the services detached.

Playing

Once all the services are up and running, you can then navigate to localhost:36104 to start playing.

Gameplay

splendor

Upon startup, you will be greeted by the Splendor title page. Simply click to log in.

You may now log in to one of the preconfigured Lobby Service accounts made by an administrative user.

This will now take you to the lobby screen. You can either start up a brand new game or load a previously saved game. All previously saved games can be loaded by any player and only require the same number of players to launch. The upper righthand corner features the settings and logout buttons.

All players have access to the settings page and will be able to change their colors and passwords here.

Admin accounts will also notice an admin zone button in the upper lefthand corner. The admin zone allows admin accounts to add, delete, or modify user accounts and force unregister game services.

Hovering over the "Create Session" button allows you to choose the game version to play. You will see the newly created game appear once you click on one of the three versions.

The game requires at least two players. Players can click on “Join” to join a game. Notice that only the creator has the permission to delete an unlaunched game.

The creator can launch the game once enough players have gathered.

Every player should click on "Play" to show the game board.

taketurn

During your turn, you may either take tokens according to game rules, purchase a card, or reserve a card. As the game progresses, additional actions may be unlocked and automatically added to your turn.

Authors

splendor's People

Contributors

sandpipes avatar itsalexa avatar syouinou avatar mosinlover avatar richardrxn avatar lobo808 avatar m5c 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.