A battle engine for OGame and its clones with an API for PHP and Python.
- C99 compiler
- CMake >= 3.1
- PHP >= 7.3
- Python >= 3.6
There are 2 ways how to obtain a battle engine executable:
You can download prebuilt executables for your operating system in releases page.
Or, you can build an executable yourself:
$ cmake -B build -DCMAKE_BUILD_TYPE=Release
$ cmake --build build --config Release
Make sure you specify the correct path to the obtained battle engine binary in the examples. For instance, in example-battle.php you need to replace the path in:
$battleEngine = new BattleEngine('./build/BattleEngine', OG::$unitsAttributes);
After that, you can run the examples:
$ php example-battle.php
$ python example-battle.py