StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
13 stars 2 forks source link

refactor all tests to use PkmnWithMoves instead #367

Closed dyc3 closed 3 years ago

dyc3 commented 3 years ago

Generated with:


gofmt -r 'GeneratePokemon(b, WithMoves(a)) -> PkmnWithMoves(a)' -w *.go
```

I'm not sure if we want to do this right now because we need to change `PkmnWithMoves` and others to use a new `RegisterPokemon` function that works how `RegisterMove` works.
adapap commented 3 years ago

The main reason right now for register instead is for debugging purposes, so I don't think it matters.

dyc3 commented 3 years ago

RegisterPokemon is still a public API that I would like to have anyway. Mainly made this PR as a demonstration of how gofmt can be used to refactor code.

dyc3 commented 3 years ago

Stale