1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
Commit graph

103 commits

Author SHA1 Message Date
Shlomi Fish
1ee67d9ca8 add not(use_lib) to fix subsequent solving 2020-06-17 11:50:12 +03:00
Shlomi Fish
c96d25d628 disable a debug print() call 2020-06-17 11:43:06 +03:00
Shlomi Fish
556ceed9a6 stringify "args" list 2020-06-17 10:21:02 +03:00
Shlomi Fish
faf8341c5e fix cmd line args 2020-06-16 22:57:16 +03:00
Shlomi Fish
f998b53d79 fix ncards 2020-06-16 22:35:59 +03:00
Shlomi Fish
fee9f6e20e WiP support for using solvers' DLLs 2020-06-16 22:29:42 +03:00
Shlomi Fish
e4643f71e7 add support for solving three golf variants.
Using the BlackHoleSolverWrapper .

See https://github.com/shlomif/PySolFC/issues/98 issue98.
2019-01-26 19:09:31 +02:00
Shlomi Fish
ed18fd8156 Order imports based on flake8-import-order.
Tested on ci. See https://github.com/PyCQA/flake8-import-order . In the
process did some other cleanups and
https://en.wikipedia.org/wiki/Code_refactoring .
2019-01-11 23:55:06 +02:00
Shlomi Fish
908de63d9f Fix flake8 tests.
For the new flake8.
2018-11-11 22:43:36 +02:00
Shlomi Fish
3846acef92 Refactoring / code cleanup.
See:

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.
2018-09-14 16:19:51 +03:00
Shlomi Fish
11bafeba44 use six.py. 2018-09-01 18:40:50 +03:00
Shlomi Fish
2bbea25a42 Clarify the solver dialog msg on hint-on-intract
so people will not think it was solved.
2018-08-04 17:40:36 +03:00
Shlomi Fish
02edf2afdd Made the iters_output_step configurable. 2018-08-01 19:50:31 +03:00
Shlomi Fish
7407276829 Implement the --version conditional.
See https://github.com/shlomif/PySolFC/issues/90 .
2018-08-01 19:31:11 +03:00
Shlomi Fish
4e7a653f67 Preliminary support for fc-solve's "-hoi" flag.
See
https://groups.yahoo.com/neo/groups/fc-solve-discuss/conversations/messages/1580
2018-07-31 20:56:33 +03:00
Hugo Lefeuvre
5a8b4b1708 Fix Python interpreter name typo 2018-07-31 13:40:09 +08:00
Shlomi Fish
dc8adf8411 Display the deal of imported as 'Custom'.
See https://github.com/shlomif/PySolFC/issues/47 .
2018-05-13 23:18:28 +03:00
Shlomi Fish
f630539e88 gracefully handle import. 2018-05-11 14:29:46 +03:00
Shlomi Fish
05f3e3027f Convert to an exception object.
To avoid getting wedged.
2018-05-11 13:40:13 +03:00
Shlomi Fish
4b75005b28 Start adding support for handling parse errs.
in the importFile feature. Still does not work fully.
2018-05-07 23:29:14 +03:00
Shlomi Fish
9eab5fe6bf support utf8 bom import. 2018-05-02 20:18:01 +03:00
Shlomi Fish
23001f0f0f Add support for "10" instead of "T".
See https://github.com/shlomif/PySolFC/issues/79 .
2018-04-30 22:53:49 +03:00
Shlomi Fish
04a9b4c910 Handle the utf-8 BOM in the import. 2018-04-30 20:33:23 +03:00
Shlomi Fish
c0bb252166 Fix a bug w the formatting of the foundations.
With the input to freecell solver. Reported by Don - thanks! The format
was wrong.
2018-03-19 14:11:15 +02:00
Shlomi Fish
a28001d44b Refactoring 2018-03-13 14:19:32 +02:00
Shlomi Fish
66c7f6f10b Fix a bug that the iterations were 0 on unsolved 2018-03-13 13:50:14 +02:00
Shlomi Fish
c825c3c6df Refactoring. 2018-03-13 10:28:12 +02:00
lb@lb520
b5ef9b6214 Added an alternate toolkit kivy (based on SDL2) that can be used instead of tk.
Added scripts to build an android app.
2018-03-03 20:37:56 +02:00
Roderik Ploszek
ca808161cc Fix solver communication deadlocks
Calling wait() on process object that communicates through pipes causes
deadlocks when the pipes fill up. To fix this, communicate() method was used
to send data to the solver. Returned bytes objects were converted to BytesIO
objects to keep compatibility with existing processing.
2018-02-24 22:40:47 +01:00
Roderik Ploszek
a19f0b5dda Normalize newline characters for Windows 2018-02-24 21:10:43 +01:00
Roderik Ploszek
e543490cfd Fix error message when solver isn't in the path
See https://github.com/shlomif/PySolFC/issues/51
2018-02-24 21:09:20 +01:00
Roderik Ploszek
6f72b4df3b Move duplicate code to the parent class 2018-02-24 17:11:44 +01:00
Shlomi Fish
9879147ee0 convert. 2017-12-27 15:44:46 +02:00
Shlomi Fish
7d091f42ab Extract a method. 2017-12-27 15:36:33 +02:00
Shlomi Fish
788965a55a sanity check 2017-12-27 15:24:08 +02:00
Shlomi Fish
ed4f1ae516 sanity check 2017-12-27 15:16:42 +02:00
Shlomi Fish
76ba6f7d2b Refactoring 2017-12-27 14:58:37 +02:00
Shlomi Fish
780ac558d5 Refactoring 2017-12-27 14:45:32 +02:00
Shlomi Fish
00ded37a0e Extract more. 2017-12-27 14:31:41 +02:00
Shlomi Fish
ead021aca0 refactor. 2017-12-27 14:23:10 +02:00
Shlomi Fish
d500c84f85 Extract some common exprs. 2017-12-27 14:09:20 +02:00
Shlomi Fish
e477f4bcf1 clean up the board import. 2017-12-27 13:33:18 +02:00
Shlomi Fish
c158561593 Fix file save. 2017-12-18 22:40:57 +02:00
Shlomi Fish
2989880117 cleanups. 2017-12-18 22:02:01 +02:00
Shlomi Fish
a803849b35 Working now - import board.
Mostly at least.
2017-12-18 21:52:29 +02:00
Shlomi Fish
3fc989ae0a Start implementing board import.
See https://github.com/shlomif/PySolFC/issues/47 .
2017-12-18 20:47:10 +02:00
Shlomi Fish
dbdd0f392c division sanity 2017-08-25 18:25:58 +03:00
Shlomi Fish
748a287f93 Fix the black-hole solver. 2017-08-25 18:25:58 +03:00
Shlomi Fish
f40fdfbb82 Remove debug traces and fix the solver dlg. 2017-08-25 18:25:58 +03:00
Shlomi Fish
aa4f9ee5da Crude code to get some func running in py3.
Right now klondike and freecell sort of work, but this is very hacky and
there are many leftover debug traces.
2017-08-25 18:25:58 +03:00