Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Apr 3, 2013
0 parents commit 0cf52a9
Show file tree
Hide file tree
Showing 14 changed files with 1,677 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.swp
*.swo
.DS_Store
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "github-fork-ribbon-css"]
path = github-fork-ribbon-css
url = git://github.com/simonwhitaker/github-fork-ribbon-css.git
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pndopt --- Puzzle & Dragons Optimizer
=====================================

![Screenshot](screenshot.png)

`pndopt` is a Javascript application to find an optimal path leading to a high-combo move in Puzzle & Dragons.

Only use it in emergency ☺!

*(Yes I knew there were [Big Combo](http://www.fonescience.com/bigcombo/) and [Path & Decision](http://pnd.cubeforge.net/), but the former is gone and I'm unsatisfied with the result of the latter.)*

Usage
-----

1. Left or right click on an orb to select its type.
2. Click "Solve" after completing the board.
3. Choose one solution and see how it is performed.

Requirements
------------

* Firefox (version 19 or above).
* Screen resolution of 1280×800 or above.

It may work in other configurations but I don't guarantee it will work ☺.

TODO
----

* Introduce better solver (e.g. [this post](http://puzzleanddragonsforum.com/showthread.php?tid=1603&pid=6263#pid6263)). Currently it is just a brute-force greedy algorithm, which may not produce truly optimal result.
* Resolve overlapping lines and points.
* Simulate swapping and matching when playing the animation.
* The default weight of the profiles may need to be adjusted.

5 changes: 5 additions & 0 deletions ext/jquery-1.9.1.min.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions fonts/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Font license info


## Meteocons

Copyright (C) 2012 by Alessio Atzeni

Author: Alessio Atzeni
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://www.alessioatzeni.com


## Entypo

Copyright (C) 2012 by Daniel Bruce

Author: Daniel Bruce
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://www.entypo.com


## Elusive

Copyright (C) 2013 by Aristeides Stathopoulos

Author: Aristeides Stathopoulos
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://aristeides.com/


## Iconic

Copyright (C) 2012 by P.J. Onori

Author: P.J. Onori
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://somerandomdude.com/work/iconic/


## Fontelico

Copyright (C) 2012 by Fontello project

Author: Crowdsourced, for Fontello project
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://fontello.com


Binary file added fonts/pndicons.eot
Binary file not shown.
59 changes: 59 additions & 0 deletions fonts/pndicons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/pndicons.ttf
Binary file not shown.
Binary file added fonts/pndicons.woff
Binary file not shown.
1 change: 1 addition & 0 deletions github-fork-ribbon-css
Submodule github-fork-ribbon-css added at a54d43
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<meta http-equiv="refresh" content="0;URL=pndopt.html">
Loading...
Loading

0 comments on commit 0cf52a9

Please sign in to comment.