Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.43 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.43 KB

phpGolf challenges

My attempts on PHP code golf challenges, usually with several of them for each challenge.

Installation

Run php composer.phar install and the challenge runner is ready.

Challenge runner

I also created challenge run to test quickly my attempts on challenges. It is CLI tool written in PHP for testing attempts individually or in a batch.

You can run any challenge with

php cli.php challenge:run challenge-name [attempt-number, ...]

Structure of the project is

challenges
- challenge-name <-- name of the challenge
  - attempt-number <-- number of the attempt
    - attempt.php <-- attempt, that is run
    - README.md <-- description of this attempt
  - attempt-number
    - attempt.php
    - attempt_generator.php <-- attempt generator, that generates attempt.php, it is optional
    - README.md
  ...
  - tests.php <-- tests for all attempts
  - README.md <-- description of this challenge
- challenge-name
  ...
...