GithubHelp home page GithubHelp logo

dti-pokemon's Introduction

Pokemon battle solver

Software created based on test instructions for the DTI Digital Company.

This program solves the battles between two pokemon, according to some input data.

To run the program, just create a .txt file with the input data as below

Pikachu 81
35 7 22850
55 8 23140
30 13 17280
90 5 24795
Bulbasaur 50
45 9 20000
49 12 40000
49 3 60000
45 8 10000

In case there are any questions, please refer to the example file present in src/services/input/example.txt

After the file is set, just run src/index.js from the root directory. For instance, if you wish to use the file mentioned above you'd run the following command

node src/index.js src/services/input/example.txt

After that the result will be shown in the console, with all calculations and output method defined according to the intructions given by DTI.

To simply run the program, it's not needed to install anything other than node in the machine. But, in order to develop the project further, some depencies must be installed by the following command

yarn install

ran from the root directory.

In this case, you can run the tests through the following command

yarn test

dti-pokemon's People

Contributors

pedrokohler avatar

Watchers

James Cloos 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.