Shlomi Fish
9acc97be8a
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.
2019-05-31 17:22:49 +03:00
Shlomi Fish
26e5aeb045
Rename variable/s to make them more descriptive.
...
dir is a py builtin.
2019-05-31 16:42:57 +03:00
Shlomi Fish
32411ab0ec
Refactoring.
2019-05-31 16:32:24 +03:00
Shlomi Fish
efddc917b2
Extract a method or a function.
...
This is Refactoring / code cleanup.
See:
* https://refactoring.com/catalog/extractMethod.html
* 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.
2019-05-31 16:03:22 +03:00
Shlomi Fish
2bec58be2d
Fix next deal / Ctrl+N for ms deals.
2019-05-23 19:10:57 +03:00
Shlomi Fish
74441a1746
Convert functionality to pysol-cards mod.
2019-05-23 17:26:27 +03:00
Shlomi Fish
4853b2dc5f
pickle backcompat.
2019-05-16 18:46:05 +03:00
Shlomi Fish
76804c6d76
flake8
2019-04-30 18:25:01 +03:00
Shlomi Fish
9142b90cb2
Refactoring / code cleanup.
...
Remove the unused "Comments" class.
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.
2019-04-30 17:49:36 +03:00
Shlomi Fish
ea73eb32a3
refactoring
2019-04-30 17:40:18 +03:00
Shlomi Fish
824407b136
Extract a common module/library/header.
...
This is Refactoring / code cleanup.
See:
* https://refactoring.com/catalog/extractMethod.html
* 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.
2019-04-30 17:14:57 +03:00
Shlomi Fish
9af86cddfb
Extract a common module/library/header.
...
This is Refactoring / code cleanup.
See:
* https://refactoring.com/catalog/extractMethod.html
* 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.
2019-04-29 15:14:36 +03:00
Shlomi Fish
90323173a7
Extract a common module/library/header.
...
This is Refactoring / code cleanup.
See:
* https://refactoring.com/catalog/extractMethod.html
* 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.
2019-04-29 15:08:04 +03:00
Shlomi Fish
9e148b88fe
implement the --deal command line param.
...
It implements a starting deal seed/index/number.
2019-04-29 14:51:01 +03:00
Shlomi Fish
da256a30b0
use normal print to avoid b"...".
2019-04-29 14:25:04 +03:00
Shlomi Fish
cb25f39136
abort on invalid command line game.
2019-04-29 14:24:21 +03:00
Shlomi Fish
918f177acc
prepare for v2.6.4 release.
2019-04-25 21:23:56 +03:00
Roderik Ploszek
9bf8f475bb
Fix Three Peaks scoring
...
Score is correctly updated after moving a card to the waste stack or
after winning a game. Double counting is prevented by the score_counted
variable.
see https://github.com/shlomif/PySolFC/issues/111
2019-04-22 09:28:18 +02:00
Shlomi Fish
d3561e0e77
merge differences between */toolbar.py.
...
Refactoring.
2019-04-08 18:34:27 +03:00
Shlomi Fish
0696750457
bump version to 2.6.3
2019-04-07 13:40:31 +03:00
Shlomi Fish
1d3ffc4e1d
Try fixing issue #108 - compat with pillow 6.0
...
See https://github.com/shlomif/PySolFC/issues/108 .
2019-04-05 17:37:04 +03:00
Shlomi Fish
2e67242e92
Fix the window size on startup.
...
See https://github.com/shlomif/PySolFC/issues/84 :
<<<
Yes, I can confirm that the "Save games geometry" option is present in
that build, and that it works! +1
The default startup window looks like this though (which is something
that should be addressed):
>>>
2019-04-05 16:26:55 +03:00
Shlomi Fish
48e24c2021
try fix save games geometry.
...
See https://github.com/shlomif/PySolFC/issues/84 .
2019-04-04 13:11:44 +03:00
Shlomi Fish
80252696c8
try restore Save game geometry on USE_PIL.
...
See https://github.com/shlomif/PySolFC/issues/84 .
2019-04-04 12:39:24 +03:00
Shlomi Fish
4deb3ebb58
bump the version to 2.6.2
2019-02-27 22:52:26 +02:00
Shlomi Fish
d3b1674a47
Fix spider illegal moves canMove bug.
...
See https://sourceforge.net/p/pysolfc/bugs/36/ . TODO: add tests.
2019-02-19 19:45:51 +02:00
Shlomi Fish
91e5cdafa3
Fix the indentation.
...
See http://perl-begin.org/tutorials/bad-elements/#no-indentation .
2019-02-19 17:14:17 +02:00
Shlomi Fish
490f8f2f25
bump the version
2019-02-16 22:01:05 +02:00
Shlomi Fish
8a93f4ba13
Try to fix issue#100.
...
site module is not present.
2019-02-16 21:58:24 +02:00
Shlomi Fish
cebd349e28
compat with py2app - issue #100 .
...
It does not provide site.PREFIXES .
2019-02-16 13:06:02 +02:00
Shlomi Fish
97106adf9a
bump the version
2019-02-14 18:28:32 +02: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
c0076b5b36
Better fix for SourceForge bug #31 .
...
See https://sourceforge.net/p/pysolfc/bugs/31/ . Thanks to Caelia Renee
Chapin for the fix and to Kevin Knerr for the report. Test case by
@shlomif.
2018-12-06 19:26:20 +02:00
Shlomi Fish
1fbdc2db98
Try to fix the macos x app artefacts.
...
See
https://travis-ci.community/t/pysolfc-2-5-4-tag-deploying-of-an-app-macos-app-silently-fails/854/2
.
2018-11-14 18:57:27 +02:00
Shlomi Fish
cfe9a5a9a3
Remove duplicate code.
2018-11-13 12:16:35 +02:00
Shlomi Fish
6bb9097406
[travis] osx - add pkg
2018-11-13 11:00:57 +02:00
Shlomi Fish
908de63d9f
Fix flake8 tests.
...
For the new flake8.
2018-11-11 22:43:36 +02:00
Ian Zimmerman
ffbc385bfd
Just use ALL site.PREFIXES, though I've never seen more than one
2018-10-21 14:05:34 -07:00
Ian Zimmerman
b488cbceef
Add a little support for installation into a venv
...
Add instructions for installing into a venv
2018-10-21 12:49:18 -07:00
Shlomi Fish
b142366595
Fix exception in the Wasp variant.
...
See https://sourceforge.net/p/pysolfc/bugs/31/ .
unable to move cards in py3.
2018-10-08 23:19:59 +03: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
77bd206a4e
feature: made the current solver preset persistent.
...
let it stick.
2018-09-01 19:07:00 +03:00
Shlomi Fish
11bafeba44
use six.py.
2018-09-01 18:40:50 +03:00
Shlomi Fish
ead4b9212a
avoid unneeded py3 shims.
2018-09-01 17:54:48 +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