Skip to content

a simple Moonlight Window puzzle solver using exhaustive search

License

Notifications You must be signed in to change notification settings

HighSierra0820/sunshine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sunshine

A simple Moonlight Window puzzle solver using exhaustive search.

Requirements

  • Python 3.?
  • OpenCV

How this work & Notes

  • images of glyphs are generated and stored in tgscc/
  • differences of input image (sliced) and glyphs in the character set are calculated, among which the character with lowest difference is taken
  • initial execution of solve.py may experience prolonged runtime (possibly due to Explorer indexing 5000+ files)

Usage

  • solve.py <targetImageFile>

Samples

(base) PS D:\code\projects\sunshine> python .\solve.py samples\target_1219.png
2023-12-21 15:02:13
detectCharLength: 4
改  diff: 0
旗  diff: 0
易  diff: 0
帜  diff: 0
改旗易帜
2023-12-21 15:02:26
(base) PS D:\code\projects\sunshine> python .\solve.py samples\target_1221.png
2023-12-21 15:02:32
detectCharLength: 4
踽  diff: 0
踽  diff: 0
独  diff: 0
X  diff: 0
踽踽独X
2023-12-21 15:02:45
(base) PS D:\code\projects\sunshine>_

References

About

a simple Moonlight Window puzzle solver using exhaustive search

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages