Skip to content

dawidrudnik/hyperdrive-testing

 
 

Repository files navigation

Installation

To install all dependencies, run:

docker-compose run --rm composer install

To run application itself, run:

docker-compose run --rm php php index.php

To run Behat tests, run:

docker-compose run --rm php ./vendor/bin/behat

To run ECS check, run:

docker-compose run --rm php ./vendor/bin/ecs check

To make the changes, add --fix:

docker-compose run --rm php ./vendor/bin/ecs check --fix

To run Rector check, run:

docker-compose run --rm php vendor/bin/rector process src --dry-run

To make the changes, drop --dry-run:

docker-compose run --rm php vendor/bin/rector process src

CLI example

What's new:

The game has been upgraded to PHP 8 and I checked what's new in this PHP version. While developing the application, I wanted to check out Github flow, Github Action and dependabot for myself. The game has new features such as:

  • Hyperspace Jumps - You can choose jump distance and then the exact planet
  • Refueling a spaceship - Now you can refuel the spaceship to full
  • Selection of the spaceship, difficulty level etc. - all editable in .yaml files
  • Route map - Now you can view a list of planets
  • Capital - Don't lose all your money

And more...

About

A draft for simple cli-based game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.5%
  • Gherkin 3.5%