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

1353 commits

Author SHA1 Message Date
Joe R
412e3b43a7 Fix for conflict in random number sources when restarting loaded game. 2021-06-01 18:50:03 -04:00
Joe R
84617c5083 Added King's Secrets game. 2021-05-28 23:06:08 -04:00
Joe R
1025b5402b Minor wizard utility cleanup. 2021-05-23 15:38:04 -04:00
Shlomi Fish
ba735bf1a2 Try to fix issue #177 .
See: https://github.com/shlomif/PySolFC/issues/177 - custom game wizard
failure due to bytestring vs. unicode string. Thanks to @Neelix57 and
@Butterfly for the report and some investigation.
2021-05-23 14:02:48 -04:00
Joe R
98ba9b07dc Added Precedence game. 2021-05-22 11:35:36 -04:00
Joe R
866081f46d Bugfix in playable preview. 2021-05-16 23:43:49 -04:00
Joe R
72ff4f6079 Added option to center the game layout on the screen. 2021-05-16 11:13:50 -04:00
Joe R
0b27e6fd72 Added Beehive game. 2021-05-09 18:19:16 -04:00
Joe R
6d7073b067 Organized three peaks variations. 2021-05-09 09:58:26 -04:00
Joe R
fe9ad5a64f Fixed bug and added stack labels to Camelot game. 2021-05-05 19:44:46 -04:00
Joe R
09c23f21ad Added Autumn Leaves game. 2021-05-05 17:15:54 -04:00
Joe R
58a31f8abb Added enable/disable music option. 2021-05-03 23:33:19 -04:00
Joe R
323fd511cb Added four deck terrace variants. 2021-05-02 10:22:16 -04:00
Joe R
86ee7c9767 Added 8 foundation variation of Take Away/Eliminator. 2021-05-01 22:52:19 -04:00
Joe R
9a7bc59c8b Removed a leading space in the "Pyramid's Stones" alternate name that was throwing off the sorting. 2021-04-27 16:54:46 -04:00
Joe R
f7c28b5011 Added Uintah game. 2021-04-27 07:43:29 +03:00
Joe R
0e1ecd1c1e Enhanced higher resolution cardset support. 2021-04-25 13:46:53 -04:00
Shlomi Fish
7436b7193b 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.
2021-04-25 09:21:28 +03:00
Joe R
dba55c20fd Split spread stacks logic from auto-scale logic. 2021-04-25 08:51:04 +03:00
Joe R
c792b7ff77 Added Greater Wheel, a four-deck variation of Great Wheel. 2021-04-25 08:26:48 +03:00
Joe R
bc8fc2c5b0 Improved organization of the special games category. 2021-04-23 21:33:20 -04:00
Shlomi Fish
65dfcd62ac fix runtime startup bug. 2021-04-23 18:49:13 +03:00
Joe R
9fab5f8d1f Added Crossword game. 2021-04-23 18:37:20 +03:00
Joe R
f91817ee51 Added additional multi-deck variations of Golf and Forty Thieves. 2020-12-13 21:36:16 -05:00
Joe R
3b53d94305 Added Hit or Miss game. 2020-12-03 17:39:58 -05:00
Guillaumegaillard
5876134d11 Make auto_scale spread non-talon stacks on canvas
make card size, scale and canvas changes independent
check scale x after change cardset
2020-11-23 16:26:22 +02:00
Juhani Numminen
69b0cc86ff Avoid errors when options.cfg has no data
In that case res==False which was not accounted for, resulting in
AttributeError: 'bool' object has no attribute 'items'.

Closes #193.
2020-11-06 18:10:44 +02:00
Juhani Numminen
372fcba9de Window icon: Sort by largest, otherwise macOS Dock presents ugly low-res icon 2020-10-20 16:54:25 +03:00
Shlomi Fish
7da41a93be Allow to swap the mouse keys using the ini file.
See: https://sourceforge.net/p/pysolfc/discussion/503708/thread/5d77434ff8/

" PySolFC / Discussion / Open Discussion: Any way to remap mouse buttons? "

We may not have covered all the affected calls to bind().
2020-10-19 18:18:13 +03:00
Shlomi Fish
934db8da3b cleanup the last commit
Merge an identical if/else and indent comments
2020-10-19 15:00:24 +03:00
cardset
c6811cca29 Info/Settings Sliders Moved
Moved Offset Sliders to the same place as Scale Sliders. I think that makes more sense in operation and overview. It also avoids that wrong values could be saved
2020-10-19 09:14:43 +02: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
24ccdf634b macOS: use "PySolFC Help" menuitem provided by tk
The details are explained in this tutorial
https://tkdocs.com/tutorial/menus.html

For this to work, init() must destroy the tkinter.Tk instance it creates
so that was uncommented.
2020-10-14 14:59:38 +03:00
Juhani Numminen
d3faa78e75 Prune pysollib.macosx; it no longer had any effect 2020-10-12 23:35:15 +03:00
Juhani Numminen
278b3261d9 Optimize cardsetparser
Apply the EAFP principle:
Regex matching was just doing extra the work because int() will check that
its argument is suitable in any case.

EAFP as in https://stackoverflow.com/questions/11360858/what-is-the-eafp-principle-in-python
2020-10-11 16:27:43 +03:00
Shlomi Fish
d145642a9b Rename variables to make them more descriptive.
We used "lines_list" instead of "line" in singular. "list" is
the ADT ( https://en.wikipedia.org/wiki/Abstract_data_type )
rather than its python class.
2020-10-11 13:02:01 +03:00
Juhani Numminen
12601364dc Invoke init_tile() only when tile is used 2020-10-10 21:23:35 +03:00
Juhani Numminen
0be465dea1 Add error message for a missing card back (#185) 2020-10-10 21:22:58 +03:00
Shlomi Fish
95a0d7d007 refactor/modernize the calls to open()
use "with", flags
2020-10-06 18:43:15 +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
b24da7cc92 Gracefully handle pypi pysol_cards dependency
See:
https://sourceforge.net/p/pysolfc/discussion/503708/thread/208461caee/

Thanks to Fred.
2020-08-27 12:04:42 +03:00
Shlomi Fish
e2c11a7ba0 fix flake8 + tidyall tests 2020-08-27 11:52:59 +03:00
Shlomi Fish
e9e19afc46 Use freecell-solver wo which fc-solve.
No need for the executable if freecell_solver.py exists and
can be instantiated.
2020-06-24 16:59:40 +03:00
Shlomi Fish
bb8785e76b prepare for the new release 2020-06-22 13:28:22 +03:00
Shlomi Fish
38def5a0e7 optimize by using .recycle() 2020-06-20 13:45:48 +03:00
Shlomi Fish
18a460a1e7 implement black_hole_solver lib. 2020-06-19 16:19:12 +03:00
Shlomi Fish
7eb29a216f refactoring: del some unhelpful comments 2020-06-18 12:45:38 +03:00
Shlomi Fish
b518678d8d extract a method which delegates 2020-06-18 12:07:35 +03:00
Shlomi Fish
41c2633fcd update the solver iter and states counts. 2020-06-18 11:55:41 +03:00