src/pon2/app/permute

This module implements Nazo Puyo permuters.

Iterators

iterator permute[F: TsuField or WaterField](nazo: NazoPuyo[F];
    fixMoves: seq[Positive]; allowDouble: bool; allowLastDouble: bool;
    showProgress: static bool = false; parallelCount: Positive = when true:
  1
 else:
  max(1, countProcessors())): PairsPositions {.inline.}
Yields pairs&positions of the nazo puyo that is obtained by permuting pairs and has a unique solution. showProgress and parallelCount is ignored on JS backend.