Joe R
90c77ebd74
Check protected games when loading previous game.
2023-03-15 20:52:13 -04:00
Joe R
03de3e84a6
Matching type cardset support for allowing Memory games to use any cardset.
2023-01-28 10:44:57 -05:00
Joe R
3fd823b2f5
Option to select image scaling method, as discussed in issue #275 .
2022-09-19 22:26:44 -04:00
Joe R
98789e635f
Corrected import order.
2022-07-17 09:31:54 -04:00
Joe R
8bbf3bbebe
Revamped the status bar functionality - better design and cleaner options list.
2022-07-17 09:22:38 -04:00
Joe R
8d575bb747
Added image resampling option.
2022-07-06 18:39:48 -04:00
Joe R
53ac444792
Fixed Kivy help button and updated Kivy toolbar.
2022-04-28 22:09:57 -04:00
Joe R
396ca108b9
New dialog icons (from Remix Icon)
2022-03-17 23:38:09 -04:00
Joe R
4c2dd59928
Added config option to use cardset bottoms.
2022-02-18 21:13:41 -05:00
Joe R
fd694be7b2
Exposed toolbar icon size option.
2022-02-08 22:42:06 -05:00
Joe R
ca57b37aab
Game/cardset/table tile search functionality.
2021-12-22 20:30:04 -05:00
Shlomi Fish
ffa0ae1a2f
tentative fix for issue#229
...
See: https://github.com/shlomif/PySolFC/issues/229
pygame2 compat.
2021-12-03 07:58:46 +02:00
Joe R
e927d60a25
Playable preview now loads and uses cardsets of the correct type for each game.
2021-09-01 18:54:45 -04:00
Joe R
080b0043e3
Updated compatible cardset check to run when selecting cardsets.
2021-06-13 19:08:14 -04:00
Joe R
dba55c20fd
Split spread stacks logic from auto-scale logic.
2021-04-25 08:51:04 +03:00
Juhani Numminen
1c79d5437e
Refactor initCardsets
...
Make variable names descriptive.
Don't check for duplicate or empty strings in result of getSearchDirs() because
that is not necessary. Document those properties in a comment in resource.py.
Wrap try...except more closely around expressions where we want to catch.
2020-10-15 12:30:36 +03:00
Juhani Numminen
bf9ce90a5b
Refactor cardset config.txt parser to a new module
2020-10-06 14:35:28 +03:00
Shlomi Fish
39d59547af
flake8 compliance
2020-09-07 11:20:53 +03:00
Shlomi Fish
3de9955879
try2fix flake 8 tests [travis/etc.]
2020-06-17 20:53:11 +03:00
Juhani Numminen
032b645e0f
Do not catch exceptions too broadly in mainloop
...
StopIteration seems to be the expected way to stop, at least
for the tk and tile interfaces.
2020-02-09 22:07:16 +02:00
Juhani Numminen
65b86f2d1d
Improve internationalization
...
- More strings marked for translation
- Used format strings instead of concatinating fragments
- Removed space before '?' or '!' from sentences in English
Following the GNU gettext guidelines at
https://www.gnu.org/software/gettext/manual/gettext.html#Preparing-Strings
2019-08-31 13:22:21 +03:00
Juhani Numminen
26631a7a22
Remove checks for individual cardsets' COPYRIGHT files
...
It is not strictly necessary to check the presence of the COPYRIGHT file
since pysollib/{tile,tk}/selectcardset.py will work even if it's missing.
In the Debian package, individual COPYRIGHT files are missing as all license
information should be in one file anyway, /usr/share/doc/pysolfc/copyright.
Thanks to Bernhard Reiter who originally wrote this patch:
https://salsa.debian.org/games-team/pysolfc/blob/87493fb/debian/patches/remove_checks_for_copyright_files
2019-07-28 10:05:05 +03:00
Shlomi Fish
75ffea5005
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 18:32:47 +03:00
Shlomi Fish
a073d20af7
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 18:09:57 +03:00
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
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
cb25f39136
abort on invalid command line game.
2019-04-29 14:24:21 +03: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
lb@lb520
6f756cd05b
Toolbar image quality in kivy - fixed to bluecurve/xlarge
2018-05-23 14:33:29 +02:00
Shlomi Fish
c826799736
Refactoring
2018-03-13 18:31:19 +02:00
Shlomi Fish
d49c0103f4
Refactoring
2018-03-13 15:46:24 +02:00
Shlomi Fish
f18c394c33
Extract a common function.
2018-03-12 21:58:06 +02:00
Shlomi Fish
ed07eaf3fb
Refactoring: extract common logic.
2018-03-12 21:38:30 +02:00
Shlomi Fish
e6586a6e78
refactored some code.
2018-03-12 21:25:23 +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
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
86b243ad53
flake8
2017-09-18 15:37:05 +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