Hi all,
after a lot of work (but also a lot of fun in the process) the text-based
web-interface to Freecell Solver is now live and mostly went out of beta:
http://fc-solve.shlomifish.org/js-fc-solve/text/
Like I said earlier, Freecell Solver was compiled from its C/-std=gnu99 source
code to JavaScript via LLVM bitcode using
https://github.com/kripken/emscripten (whose Author and maintainer, Alon Zakai
is BCCed to this message, and a lot of thanks are extended to him for his
superb and useful work).
Anyway, I have done quite a few commits to the repository, while testing them,
and now the solver should hopefully sport better usability, and a usable
user-interface based on jQuery, jQuery UI and some plugins. You can deal any
Microsoft freecell deal, include comments in the board's layout (designated by
"#" and extending to the end of the line), solve any arbitrary board, the help
is better, the important buttons are larger, and as icing on the cake, one can
bookmark the state of the input into a unique URL - for example:
http://fc-solve.shlomifish.org/js-fc-solve/text/?stdin=%23%20MS%20Freecell%20Deal%20%2316024%0A%23%0A%3A%20QH%206D%209H%203H%209C%208S%205D%0A%3A%20KD%202H%205C%208H%207C%20QC%206H%0A%3A%206S%20KH%209D%208D%204S%20KS%20AH%0A%3A%204D%203S%20TD%20JD%20AS%208C%202C%0A%3A%207S%20TH%20JS%204H%20TC%20JH%0A%3A%20QS%203C%202S%205S%20AD%204C%0A%3A%20AC%20QD%203D%207H%20TS%20JC%0A%3A%209S%207D%206C%205H%20KC%202D%0A&preset=as&deal_number=16024
(short URL -
http://xrl.us/boamfu ).
The text-based solver is not perfect (and I still need to work on a rich web UI
interface that will visualise the solution graphically), but it should be
usable.
My task list currently reads this:
Regards,
Shlomi Fish
CURRENT TASKS:
- Play with using
http://twitter.github.com/bootstrap/ for the site.
* in a separate git branch
* Added [Sat 2013-01-12]
- Use localStorage for remembering the state of the form.
* Added [Sat 2013-01-12]
- Add support for more solitaire games
* Added [Sat 2013-01-12]
* (bakers_game, bakers_dozen, seahaven, simple simon, etc.)
- Mention the JS/jQuery/CSS libraries that we are using
* On src/js-fc-solve/text/index.html.wml
* Added [Sat 2013-01-12]
- jQuery
* Added [Sat 2013-01-12]
- jQuery UI
* Added [Sat 2013-01-12]
-
https://github.com/kylefox/jquery-querystring
* Added [Sat 2013-01-12]
- Joose
* Added [Sat 2013-01-12]
- Etc.
- Make the output more compatible with fc-solve -sam -p -t.
* Added [Sun 2013-01-13]
LONG TERM:
- Prepare the solver with the GUI.
* Added [Sat 2013-01-12]
- Make sure the libfreecell-solver.min.js is built with optimizations.
* -O2 or maybe even -O3.
* Will also reduce the size.
* Added [Sun 2013-01-13]
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html
Larry Wall can make shit up, and the computer will understand what he means.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Received on Sat Jan 12 2013 - 23:52:12 IST