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

401 commits

Author SHA1 Message Date
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
908de63d9f Fix flake8 tests.
For the new flake8.
2018-11-11 22:43:36 +02: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
Roderik Ploszek
38bb0393f1 Fix a typo 2018-04-15 23:34:45 +02:00
Roderik Ploszek
15befcf6cf Fix Right Triangle in Python 3
Wrong methods were called (from TalonStack instead of Stack) because of
new-style class' MRO in Python 3
2018-04-15 23:20:25 +02:00
Shlomi Fish
dd675e30b5 Add the Freecell w Zero Reserves preset.
It is useful to me, and the wizard-based games do not support the solver
well.
2018-04-15 17:51:54 +03:00
Roderik Ploszek
c37fd78310 Fix a typo 2018-04-15 15:49:40 +02:00
Roderik Ploszek
18bccf7dc7 Fix playable preview of Double Fives 2018-04-14 09:12:54 +02:00
Roderik Ploszek
3ff3dcf54e Fix integer division 2018-04-14 09:07:12 +02:00
Roderik Ploszek
3b80878788 Fix return value of dealCards
for Canfield Rush talon
2018-04-14 09:03:40 +02:00
Shlomi Fish
85eedc6186 flake8 - empty whitelist. 2018-03-21 10:45:12 +02:00
Shlomi Fish
033f99e4f2 refactoring. 2018-03-13 12:42:04 +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
c9baf9585a Fix integer division 2018-03-03 17:20:57 +01:00
Shlomi Fish
ca48ec221d Fix a crash in shisensho.
See https://github.com/shlomif/PySolFC/issues/54 . Thanks to @lufebe16
for the report and the fix.
2018-02-24 13:11:43 +02:00
Shlomi Fish
3ada0e3e0b Convert to six.moves. 2018-02-20 01:41:40 +02:00
Shlomi Fish
64720e8a97 Convert to six.py 2018-02-19 19:26:09 +02:00
Shlomi Fish
2c1228fc95 got flake8 to validate mahjongg1/2/3. 2018-02-19 18:51:02 +02:00
Shlomi Fish
76580b7a3f Extract a method. 2017-11-13 22:27:43 +02:00
Shlomi Fish
4ad3f0f889 Extract a base class/trait for some games. 2017-11-13 21:38:34 +02:00
Shlomi Fish
6cfd8d351e Extract more common methods. 2017-11-09 21:40:42 +02:00
Shlomi Fish
184d4e32db Extract method. 2017-11-09 21:24:35 +02:00
Shlomi Fish
4f2b28e017 Extract another method. 2017-11-09 19:20:41 +02:00
Shlomi Fish
4fc37276aa Extract _startDealNumRows(). Refactoring. 2017-11-09 19:06:59 +02:00
Shlomi Fish
aa72842042 Refactoring more into _dealNumRows. 2017-11-09 18:48:59 +02:00
Shlomi Fish
dd2f0ab0e1 Continue refactoring. 2017-11-09 18:41:41 +02:00
Shlomi Fish
1fda22efbe Start extracting _dealNumRows().
A common pattern in the code.
2017-11-09 18:07:15 +02:00
Shlomi Fish
38bfb88971 Made the new flake8 and travis happier.
Fix the warnings.
2017-11-04 20:15:52 +02:00
Shlomi Fish
de93df2de7 flake8 and other tests. 2017-09-18 16:37:02 +03:00
Shlomi Fish
e0efb8a02c flake8 2017-09-18 15:57:16 +03:00
Shlomi Fish
b887d6042b Made flake8 happier.
Removed __all__ and stuff - we use explicit imports now.
2017-09-18 13:04:53 +03:00
Shlomi Fish
dbdd0f392c division sanity 2017-08-25 18:25:58 +03:00
Shlomi Fish
e90b48104d Division sanitize. 2017-08-25 18:25:58 +03:00
Shlomi Fish
5ac5039687 Convert the Layout_Method to staticmethod()
This way it can be called as before in both python2 and python3.
2017-08-25 18:25:58 +03:00
Shlomi Fish
6b9d5bd0c6 Propagate to the subclasses. 2017-08-25 18:25:58 +03:00
Shlomi Fish
cf2cdc156f Cleanups 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
Shlomi Fish
ce6f5613a3 sixify tkfont. 2017-05-22 19:03:18 +03:00
Shlomi Fish
ae582a6c46 2to3 on pysollib/games/*/*.py 2017-05-22 00:31:02 +03:00
Shlomi Fish
54946fabca 2to3 on pysollib/games/special/*.py 2017-05-22 00:15:22 +03:00
Shlomi Fish
4d963e3f59 2to3 on pysollib/games/mahjongg/*.py 2017-05-22 00:00:50 +03:00
Shlomi Fish
ea0008d745 2to3 on pysollib/games/*.py 2017-05-17 21:56:27 +03:00
Shlomi Fish
c6db7bf8c5 2to3 on pysollib/games/[a-y]*.py 2017-05-17 21:48:56 +03:00
Shlomi Fish
5ade60510c 2to3 on pysollib/games/[a-w]*.py 2017-05-17 21:45:51 +03:00
Shlomi Fish
80e5eddafb 2to3 on pysollib/games/[a-t]*.py 2017-05-17 21:40:29 +03:00
Shlomi Fish
ee82f9c6e8 2to3 on pysollib/games/[a-s]*.py 2017-05-17 21:37:28 +03:00
Shlomi Fish
df6e509409 2to3 on pysollib/games/[a-r]*.py 2017-05-17 21:33:51 +03:00
Shlomi Fish
49ff3488fe 2to3 on pysollib/games/[a-p]*.py 2017-05-17 21:28:43 +03:00
Shlomi Fish
fd8a73610c 2to3 on pysollib/games/[a-n]*.py 2017-05-14 18:19:23 +03:00