PHPackages                             danielson/capture-pokemon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danielson/capture-pokemon

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

danielson/capture-pokemon
=========================

A game of capturing pokemon passing on houses from directions from the user

v1.1.1(4y ago)07MITPHP

Since Oct 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DanielsonSilva/CapturePokemon)[ Packagist](https://packagist.org/packages/danielson/capture-pokemon)[ RSS](/packages/danielson-capture-pokemon/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

CapturePokemon
==============

[](#capturepokemon)

A game of capturing pokemons giving directions to the player. The user send a sequence of characters giving directions as this one:

- N -&gt; player goes north;
- S -&gt; player goes south;
- O -&gt; player goes west;
- E -&gt; 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
=============

[](#how-to-use-it)

```
// import the package
use danielsonsilva\CapturePokemon\PokemonGame;

// Create your object
$pokemonGame = new PokemonGame();

// create your paths using the four options provided
$pathOne = "NSOOEESNN";
$pathTwo = "OESSSNNEE";

// Then let the player walk in those directions
$numberCapturedPokemon1 = $pokemonGame->walkDirections($pathOne);
$numberCapturedPokemon2 = $pokemonGame->walkDirections($pathTwo);

// get the number of pokemons
echo $numberCapturedPokemon1; // 5
echo $numberCapturedPokemon2; // 7

```

Version History
===============

[](#version-history)

v 1.1.1
-------

[](#v-111)

- Reset ash position before walking directions

v 1.1.0
-------

[](#v-110)

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

[](#v-101)

- Changed some composer.json properties

v 1.0.0
-------

[](#v-100)

- Package danielsonsilva/CapturePokemon created;
- Features: walk directions provided to determine number of pokemons captures
- Unit tests to check its effectiveness, memory usage and performance

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

1676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23971f67bcf6b36a419c009430b83ce1003acfb65de46ba4d5d1092f6e861b56?d=identicon)[DanielsonSilva](/maintainers/DanielsonSilva)

---

Top Contributors

[![danfxs](https://avatars.githubusercontent.com/u/144858834?v=4)](https://github.com/danfxs "danfxs (4 commits)")

### Embed Badge

![Health badge](/badges/danielson-capture-pokemon/health.svg)

```
[![Health](https://phpackages.com/badges/danielson-capture-pokemon/health.svg)](https://phpackages.com/packages/danielson-capture-pokemon)
```

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
