Download the PHP package danielson/capture-pokemon without Composer
On this page you can find all versions of the php package danielson/capture-pokemon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download danielson/capture-pokemon
More information about danielson/capture-pokemon
Files in danielson/capture-pokemon
Download danielson/capture-pokemon
More information about danielson/capture-pokemon
Files in danielson/capture-pokemon
Vendor danielson
Package capture-pokemon
Short Description A game of capturing pokemon passing on houses from directions from the user
License MIT
Package capture-pokemon
Short Description A game of capturing pokemon passing on houses from directions from the user
License MIT
Please rate this library. Is it a good library?
Informations about the package capture-pokemon
CapturePokemon
A game of capturing pokemons giving directions to the player. The user send a sequence of characters giving directions as this one:
- N -> player goes north;
- S -> player goes south;
- O -> player goes west;
- E -> player goes east;
- Any other letter player stand still
Each direction take, the player captures a pokemon. But if the player goes into a direction that he already went, then no pokemons captured.
The game returns the number of pokemons that the player took after walking in all those directions.
How to use it
Version History
v 1.1.1
- Reset ash position before walking directions
v 1.1.0
- Added private functions: resetMap
- Added a public function to get the current map from the object
- Fix a bug when walking two times without reseting the map
v 1.0.1
- Changed some composer.json properties
v 1.0.0
- Package danielsonsilva/CapturePokemon created;
- Features: walk directions provided to determine number of pokemons captures
- Unit tests to check its effectiveness, memory usage and performance
All versions of capture-pokemon with dependencies
PHP Build Version
Package Version
Requires
phpunit/phpunit Version
^9.5
The package danielson/capture-pokemon contains the following files
Loading the files please wait ...