/stonesgame.io

Massive, well ;), online multiplayer real-time game

Primary LanguageJavaMIT LicenseMIT

stonesgame.io Build Status Coverity Status Coverage Status Dependency Status

Overview

Online real-time demo game http://www.stonesgame.io/. Leverage web-sockets for interactivity and dropwizard for u-services approach.

To read more about technical and not only decisions made check [decisions.md] (https://github.com/zshamrock/stonesgame.io/blob/master/decisions.md).

How to run

Just do:

  • ./gradlew run on Linux/Mac
  • gradlew.bat run on Windows

Then the main application is available at http://localhost:58080/ and the admin interface accessible at http://localhost:58081/.

Ask another user to join the game as well, and you are ready to go!

Available environment variables

Name (default value) Purpose Possible values
PORT (58080) Port on which the application is running. Any available port. In case of Heroku, except port 80, as it binds the application on the configured PORT and then forward requrest from :80 to the application.
BOTS_ENABLED (true) Enable or disable bots support. true | false
BOTS_SCHEDULED_PERIOD_IN_SECONDS (30) Period in secods of a new bot to be added to the players queue, so to be available to join the game. Any positive number greater or equal 10. Reasonable values are between 10 and 30 seconds.
BOTS_POOL_SIZE (10) Maximum number of bots avaialable in the application. Any positive number less or equal 100. Reasonable values are between 5 and 100.

Rules

Rules

For more details read Game Rules.

License

The MIT License (MIT)

Copyright (c) 2015 Aliaksandr Kazlou

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.