Create a program (using the api documented here) which:
- Starts a new game
- Fetches a list of ads
- Picks the best ads to solve and solves them
- Optionally buys items to improve its chances.
- Repeats from step two until lives run out.
Your solution is considered acceptable when the application is reliably able to achieve a score of at least 1000 points.
- install VM VirtualBox v5.1.14 or newer
- install Vagrant for your OS
- check VagrantFile for some configuration if needed (default host port is: 8080)
- open terminal, navigate to application folder and type: vagrant up
- wait, it should download all the necessaries, you will see the message when it finishes.
- Install composer
- If you are on MAC: check php version in terminal:
php -v
- If PHP is installed then navigate to app folder and type this:
composer install
(it will install all dependencies)
Option 1: open browser localhost:8080 - it will execute script, wait for results
Option 2: in terminal, navigate to app folder and type:
vagrant ssh
cd /vagrant
composer run
-
From terminal: Go to app folder
-
run from terminal:
php -S localhost:8080 public/index.php
As a result, next link is available: Localhost: http://localhost:8080/
You can browse this url in order to run script
OR
type from app folder in terminal: php public/index.php
OR
type from app folder in terminal composer run