Giter Site home page Giter Site logo

task-game's Introduction

Task description:

Create a program (using the api documented here) which:

  1. Starts a new game
  2. Fetches a list of ads
  3. Picks the best ads to solve and solves them
  4. Optionally buys items to improve its chances.
  5. 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.

Installation:

Vagrant option:
  1. install VM VirtualBox v5.1.14 or newer
  2. install Vagrant for your OS
  3. check VagrantFile for some configuration if needed (default host port is: 8080)
  4. open terminal, navigate to application folder and type: vagrant up
  5. wait, it should download all the necessaries, you will see the message when it finishes.
Manual option:
  1. Install composer
  2. If you are on MAC: check php version in terminal: php -v
  3. If PHP is installed then navigate to app folder and type this: composer install (it will install all dependencies)

Run application

Using Vagrant:

Option 1: open browser localhost:8080 - it will execute script, wait for results

Option 2: in terminal, navigate to app folder and type:

  1. vagrant ssh
  2. cd /vagrant
  3. composer run
Manual (MAC/Linux)
  1. From terminal: Go to app folder

  2. 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

task-game's People

Contributors

n-porsh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.