Skip to content

.NET version of the knewjade Perfect Clear solution finder (via DLL Importing)

Notifications You must be signed in to change notification settings

ZetrisAI/PerfectClearNET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PerfectClearNET

NuGet - Download Discord - Join Chat

.NET version of the knewjade Perfect Clear solution finder (via DLL importing).

Installation and Usage Example

Use PerfectClearNET from NuGet in your project.

using PerfectClearNET;

// Listen for search completion
PerfectClear.Finished += ...;

// Start search in the background
PerfectClear.Find(...);

// Abort search prematurely
PerfectClear.Abort();

// Access results of last search
PerfectClear.LastSolution;
PerfectClear.LastTime;

A common need with the Perfect Clear Finder is a pathfinder to tell how to move the piece into position, MisaMinoNET's pathfinder can be used for this purpose:

using PerfectClearNET;
using MisaMinoNET;

// Utilize MisaMinoNET pathfinder after search
movements = MisaMino.FindPath(
    ...,
    PerfectClear.LastSolution[0].Piece,
    PerfectClear.LastSolution[0].X,
    PerfectClear.LastSolution[0].Y,
    PerfectClear.LastSolution[0].R,
    current_piece != PerfectClear.LastSolution[0].Piece,
    ...
);

About

.NET version of the knewjade Perfect Clear solution finder (via DLL Importing)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.7%
  • C# 7.2%
  • C 0.1%