|
|
|
|
|
by thaumasiotes
1797 days ago
|
|
> So, it's an Nx(NxN/2) half grid. No, it's an NxN grid. Look at the second half of my comment. > This is easily solved on the implementation side by making sure, for example, that the enum values for the second 2 arguments are always in ascending order. So that when somebody invokes your function and passes the defender's types in the order listed for the Pokemon rather than sorting them beforehand, you crash? |
|
And why the sudden helplessness? Just sort the 2 arguments before passing them to the internal Impl.