Skip to content

24ik/pon2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pon! Tsu

Pon! Tsu is an application and library for Puyo Puyo and Nazo Puyo.

Features:

  • Solver: Solves the Nazo Puyo.
  • Generator: Generates the Nazo Puyo.
  • Permuter: Permutes the pairs in the Nazo Puyo to find a unique-solution problem.
  • IDE: IDE for Puyo Puyo and Nazo Puyo.
  • Marathon: Search for pairs sequence and play a marathon mode.

Not supported now:

  • Wall Puyo, Hard-garbage Puyo, and Iron Puyo
  • Dropping garbage puyo
  • Puyo Puyo Fever

Note that now I am working hard on CUI and web-GUI development, and the native-GUI application is beta version.

Installation

Downloading Built Binary

You can get the built binary at the latest release.

Manual Installation

nimble install pon2 -p:-d:danger

If you want to specify the instruction set, use the following command:

nimble install pon2 -p:-d:danger -p:-d:pon2.avx2=<bool> -p:-d:pon2.bmi2=<bool>

Usage

CLI or Native Application

Run pon2 -h.

Web Application

See the documentations:

For Developers

It is necessary to place the assets directory to the one specified by -d:pon2.assets.native or -d:pon2.assets.web.

Known Issues

  • AVX2 only works on Linux.

API Usage

See the API documentation.

Running Tests

nimble test

Writing Tests

  1. Create a new directory directly under the tests directory.
  2. Create a new file main.nim in the directory.
  3. Write the entry point of the test as main() procedure in the file.

Generating Web Page

Run the following command to generate files in the www directory.

nimble web

Contribution

Please work on a new branch and then submit a PR for the main branch.

License

Apache-2.0

See LICENSE and NOTICE for details.