https://github.com/phxql/restwars
An online game (like the good old browsergames) which can be played via a REST interface
https://github.com/phxql/restwars
Last synced: about 1 year ago
JSON representation
An online game (like the good old browsergames) which can be played via a REST interface
- Host: GitHub
- URL: https://github.com/phxql/restwars
- Owner: phxql
- License: lgpl-3.0
- Created: 2014-07-12T11:22:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T12:54:02.000Z (over 8 years ago)
- Last Synced: 2025-04-04T01:11:18.241Z (over 1 year ago)
- Language: Java
- Size: 980 KB
- Stars: 13
- Watchers: 5
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# RESTwars
An online game (like the good old browsergames) which can be played via a REST interface.
[](https://travis-ci.org/phxql/restwars)
* [Build RESTwars from source and get it running](https://github.com/phxql/restwars/blob/master/docs/build_from_source.md)
* [Contributing](https://github.com/phxql/restwars/blob/master/docs/contributing.md)
* [Webservice documentation](https://github.com/phxql/restwars/blob/master/docs/webservice.md)
* [Write a bot](https://github.com/phxql/restwars/blob/master/docs/write_a_bot.md)
* [Changelog](https://github.com/phxql/restwars/blob/master/CHANGELOG.md)
## Universe
The game takes place in a universe. The universe consists of galaxies which consist of solar systems which consist of planets.
Each planet is identified with a set of coordinates: `[g].[s].[p]` where `[g]` is the number of the galaxy, `[s]` is the number of the solar system inside the galaxy and `[p]` is the number of the planet inside the solar system.
## New players
New players start with one planet in a randomized location in the universe.
## Resources
### Crystal
Crystal is needed for every building, ship and research. Crystals can be stolen from attackers.
### Gas
Gas is needed for every advanced technology. Gas can be stolen from attackers.
### Energy
Energy is needed for every building, ship and research. Energy is also consumed when traveling with ships through the universe. Energy can't be stolen from attackers.
## Buildings
### Command center
Allows the construction of other buildings. Upgrading the command center speeds up the construction of buildings.
### Crystal mine
Generates crystals. Upgrading the mine increases the generation rate.
### Gas refinery
Generates gas. Upgrading the refinery increases the generation rate.
### Solar panels
Generates energy. Upgrading the panels increases the generation rate.
### Shipyard
Allows the construction of ships. Upgrading the shipyard speeds up the construction of ships.
### Research center
Enables research of technologies. Upgrading the research center speeds up the research.
### Telescope
Enables scanning the area around the planet. Upgrading the telescope widens the scan area and increases the range and accuracy of incoming enemy fleet detection.
## Ships
### Mosquito
Small and cheap fighter ship.
### Dagger
Very fast fighter ship.
### Colony
Colonizes planets.
### Probe
Fast and cheap scout.
### Mule
Freighter.
### Daedalus
Sophisticated fighter ship.
## Technology
### Build cost reduction
Reduces the build cost for buildings.
### Combustion engine
Reduces the flight cost for ships with combustion engines.