-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from Bgeninatti/dev
- Loading branch information
Showing
39 changed files
with
1,538 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,11 @@ on: | |
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include pythonium *.ttf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,32 @@ | ||
# pythonium | ||
# Pythonium | ||
|
||
Pythonium is a space turn-based strategy game where each player leads an alien race | ||
that aims to conquer the galaxy. | ||
Pythonium is a space turn-based strategy game where each player leads an alien race that aims to conquer the galaxy. | ||
|
||
You must explore planets to search and extract a valuable mineral: the `pythonium`. | ||
This precious material allows you to build cargo and combat spaceships, mines to get | ||
more pythonium for your planets. | ||
This precious material allows you to build cargo and combat spaceships, or mines to get | ||
more pythonium. | ||
|
||
Manage the economy on your planets, and collect taxes to your people to found your | ||
constructions, but be careful! Keep your clans happy if you want to avoid unrest | ||
in your planets. | ||
Manage the economy on your planets, and collect taxes on your people to finance your | ||
constructions, but be careful! Keep your clans happy if you want to avoid unrest in your planets. | ||
|
||
Put your space helmet on, set your virtualenv, and start coding. | ||
Battle for pythonium is waiting for you. | ||
|
||
Battle for pythonium is waiting for you! | ||
|
||
## Installation | ||
## About the game | ||
|
||
You can install Pythonium cloning the repository and running | ||
Pythonium is a [programming game](https://en.wikipedia.org/wiki/Programming_game), which means you need to code a player to play. | ||
|
||
``` | ||
$ python setup.py install | ||
``` | ||
You can choose by playing alone in single-player mode, in multi-player mode against some of the available bots, or your friend's bots. | ||
|
||
To test your installation run | ||
The game generates several outputs that will help you to evaluate the performance of your player and make improvements on those. | ||
|
||
``` | ||
$ pythonium --version | ||
Running 'pythonium' version x.y.z | ||
``` | ||
If you want to know more and learn how to play, check out the [official documentation](https://pythonium.readthedocs.io/en/latest/). | ||
|
||
## Getting started | ||
## Acknowledge | ||
|
||
Pythonium allows for different game modes. The default is the **classic mode**, where each player starts with 1 planet and 2 carriers in a random galaxy of 300 planets. | ||
The first player that conquers 210 planets (70% of the total) wins. | ||
This game is strongly inspired by [VGA Planets](https://en.wikipedia.org/wiki/VGA_Planets), a space strategy war game from 1992 created by Tim Wisseman. | ||
|
||
## Single player mode | ||
The modern version of VGA Planets is [Planets.nu](https://planets.nu/), and that project has also influenced the development of Pythonium. | ||
|
||
Once you have Pythonium installed you can test it in single-player mode with some of the available bots. | ||
i.e: the ``standard_player`` bot. | ||
|
||
``` | ||
$ pythonium --players pythonium.bots.standard_player | ||
``` | ||
|
||
Once the command finishes you should have a ``<sector>.gif`` file and a ``<sector>.log``, where ``<sector>`` is a unique code generated for the game. | ||
|
||
* ``<sector>.gif``: This is an animation showing how the planet's ownership, ship movements, and score along with the game. | ||
|
||
* ``<sector>.log``: Logs with all the relevant events during the game. | ||
|
||
|
||
## Multiplayer mode | ||
|
||
Pythonium allows to play up to two players in a single game. You can test it by providing two bots to the ``--players`` argument. | ||
|
||
|
||
``` | ||
$ pythonium --players pythonium.bots.standard_player pythonium.bots.pacific_player | ||
``` | ||
|
||
The output will be similar to the single-player mode: one ``.gif`` and one ``.log`` file. | ||
|
||
|
||
## Metrics | ||
|
||
By providing the ``--metrics`` arguments pythonium creates a report with several metrics of the game. | ||
This is especially useful to evaluate the performance of your players, and know their strengths and weaknesses. | ||
|
||
``` | ||
$ pythonium --metrics --players pythonium.bots.standard_player pythonium.bots.pacific_player | ||
``` | ||
|
||
In adition to the ``.gif`` and ``.log`` now you will se a ``report_<sector>.png`` with several charts. | ||
|
||
|
||
## Code your own player. | ||
|
||
Tutorial coming soon. | ||
To all of them, thank you. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.