Giter Site home page Giter Site logo

procon_solve's Introduction

木組主之示申(ki kumu nushi no kami, or, ki kumun shi no kami)

Afraid to say, He is the 木組主之示申(ki kumu nushi no kami, or, ki kumun shi no kami),
is sitting downs to synthesized stones, is thinkingh how to solve puzzle into zero point.

solver of shape filling puzzle.

shape_filling_image

shape filling puzzle.

example usage

$ # call solver program by problem number
$ ./call-puzzle-solver.ros 3 
# ... solution messages ...
$ 
$ # or call it by problem file name
$ ./procon_solve/call-puzzle-solver.ros --problem-file some/directory/problems/puzzle_XX.txt
# ... solution messages ...
$ 

ref src/note.lisp

this is maybe older...

CL-USER> (ql:quickload :puzzle-1617)
PUZZLE-1617> (in-package :puzzle-1617)
#<PACKAGE "PUZZLE-1617">

PUZZLE-1617> ;; in *example-problem-9*, car is frame-piece(-), cdr is noneframe-piece(+)
PUZZLE-1617> (search-solution-from-prime-pieces
              (cons (car *example-problem-9*) (cdr *example-problem-9*)))
synth-list to: 0, using-pieces [len]: (0)[1]
HTML file updated at : /path/to/projects/procon_solve/test/results/piece-list.html 
synth-list to: 1416, using-pieces [len]: (0 2)[2]
;; ...... omit ......
;; after wait, solven synthesized piece is returned.
;; access to HTML file updated, shown in above, 
;; you can look the solution and/or progresses. 
;; of the piece synthesized

PUZZLE-1617> ;; there is 7 problems prepared now. by (nth 0,1,...,6 *problem-list*), e.x.
PUZZLE-1617> (search-solution-from-prime-pieces (nth 4 *problem-list*))

PUZZLE-1617> ;; also, there is some other searching methods.
PUZZLE-1617> ;; beam search
PUZZLE-1617> (time (progn (search-solution-from-prime-pieces-beam
                           (nth 3 *problem-list*))
                          nil))

;; omit

;; and evaluation-value saved beam search 
PUZZLE-1617> ;; gradient stacked beam search
PUZZLE-1617> (time (progn (search-solution-grad-beam
                           (nth 3 *problem-list*))
                          nil))
;; omit

profile and tests are especially written in src/flamegraph.lisp, src/profile.lisp. call functions defined there, you can also play artworks by this package.

old versions

releases are available here Releases · i-makinori/procon_solve.

version release
2017 https://github.com/i-makinori/procon_solve/tree/release_2017
2016 https://github.com/i-makinori/procon_solve/tree/release_2016

ToDo

I'm going to do...

  • コマンド引数の整理
  • ドキュメント整備

known bugs

thankfulls

Thankfull References

Thank you for these texts books.

Thankfull Libraries

Thank you for these libraries.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.