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

1362 commits

Author SHA1 Message Date
Shlomi Fish
4b7df34d67 pin the fcs version - reproducible builds 2020-05-06 15:11:24 +03:00
Shlomi Fish
a004f7e690 fix tidyall/flake8 tests 2020-05-06 15:11:24 +03:00
lufebe16
ccacdbe148 Apk build scripts
- updated for use with p4a version 2019.10.6.
- additions to build instructions.
2020-05-06 15:11:24 +03:00
lufebe16
9169297801 Updates kivy version:
- added support for right mouse button (desktop only)
- corrected a problem with virtualenv in mkp4a.init
2020-05-06 15:11:24 +03:00
Shlomi Fish
586cd4a05f Add python3 PATH for pip3 on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-05-06 15:11:24 +03:00
Shlomi Fish
ce72838aff Add python3 to homebrew on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-05-06 15:11:24 +03:00
Shlomi Fish
3649a52ab2 SHOULD_PUT_bye_for_now_FIRST = False
To avoid complaints about non random music.
2020-05-06 15:11:24 +03:00
Juhani Numminen
3f660b25a0 Import ttk from standard library, drop local copy 2020-05-06 15:11:24 +03:00
Juhani Numminen
ca93af4897 Fix whitespace in pyramid.py 2020-05-06 15:11:24 +03:00
lufebe16
2fea665242 Corrections on game 'pyramid'
- For TypeError reported with #147. (clickhandler failed to return a value)
- For index out of range (in pyramid.y)
2020-05-06 15:11:24 +03:00
Juhani Numminen
d0ff5494d5 Fix 'TclError: unknown option' for tk
Partly reverts commit b9a46ecf35
2020-05-06 15:11:24 +03:00
Juhani Numminen
3793d8392e 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-05-06 15:11:24 +03:00
Juhani Numminen
0fd5e40b54 Fix menu colors on macOS with dark menu bar
Widget colors and all scrollbars look just fine without these lines
despite the comments.
2020-05-06 15:11:24 +03:00
Shlomi Fish
2c16d5773d fix a crash on "open game" 2020-02-09 11:42:44 +02:00
Shlomi Fish
eb5e97acc7 Refactoring / code cleanup.
Use a frozenset()-like list.

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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
8078db9abc fix load/save 2020-02-09 11:39:40 +02:00
Juhani Numminen
74016ff224 README: Change venv to reference PKGTREE and list more pre-requisites (#149) 2020-02-09 11:39:40 +02:00
Juhani Numminen
f96ceb57a0 install-pysolfc.sh: Use bash array for holding a program name and arguments
The previous scalar variable with quoted "$PIP" caused a "command not found"
error because that erroneously put prog name and arguments in a single token.
2020-02-09 11:39:40 +02:00
Shlomi Fish
d90bbdab2e Add 13 column Bisley - thanks to qunka.
See:

* https://github.com/shlomif/PySolFC/issues/148

* https://gist.github.com/qunka/3adac1878b481eb419ff6f3e1726add5

Thanks to https://github.com/qunka .
2020-02-09 11:39:40 +02:00
Shlomi Fish
70012407b0 Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
93d8c2a564 Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
85545dd67c avoid leftover py2 test files. 2020-02-09 11:39:40 +02:00
Shlomi Fish
4e7a01517a Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
b4947cccce appveyor fix #1 - temply invalidate caches 2020-02-09 11:39:40 +02:00
Topi Miettinen
879709d682 Skiz help: fix typo
decending -> descending
2020-02-09 11:39:40 +02:00
Shlomi Fish
2bf9b249cc move functionality to pysol-cards PyPI module 2020-02-09 11:39:40 +02:00
Shlomi Fish
1feb099be0 fix tests 2020-02-09 11:39:40 +02:00
Topi Miettinen
4c8c511626 Describe order of Ganjifa suits
Help for Dashavatara Ganjifa games refer to general Ganjifa help for
order of suits, but it was actually missing.
2020-02-09 11:39:40 +02:00
lufebe16
8f618a6a29 Android build script adaptations. 2020-02-09 11:39:40 +02:00
lufebe16
5119b5a161 Added android permission request dialog 2020-02-09 11:39:40 +02:00
lufebe16
de2d9d5eae Double tap added to cardselection (kivy toolkit)
- fixes issue #117
2020-02-09 11:39:40 +02:00
lufebe16
ad0512d333 fixed2: allow game restore to accept older storage format. 2020-02-09 11:39:40 +02:00
lb@lb7520
62a754a0ee fixed: restore game 2020-02-09 11:39:40 +02:00
lb@lb7520
1bc1dd25c5 language selection
- option 'language' added to option section 'general'
- language selection code in kivy menubar
- mygettext refactored
- translations (german) updated
2020-02-09 11:39:40 +02:00
lb@lb7520
58bf92b87a german translations (revised) 2020-02-09 11:39:40 +02:00
lb@lb7520
d0f409db80 german translations (mainly kivy/android related)
- updated kivy/android files
- executed 'make pot' to update message-ids
- german translations added
2020-02-09 11:39:40 +02:00
Juhani Numminen
f50604354c Update translations after string changes 2020-02-09 11:39:40 +02:00
Juhani Numminen
2f93667fc6 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
2020-02-09 11:39:40 +02:00
Shlomi Fish
18e6ab96be Extract a common class/struct.
This is Refactoring / code cleanup.

See:

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

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

* 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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
4c331d32bd Add more items to "how you can contribute". 2020-02-09 11:39:40 +02:00
Shlomi Fish
d8367a140a Extract a common class/struct.
This is Refactoring / code cleanup.

See:

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

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

* 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.
2020-02-09 11:39:40 +02:00
Juhani Numminen
7a7874fc47 Refactor and comment locale_dir selection 2020-02-09 11:39:40 +02:00
Juhani Numminen
6ea2bba758 Detect LANG for gettext on android 2020-02-09 11:39:40 +02:00
Juhani Numminen
ceb6df5548 setup*.py: Install locale/ also on macOS and Windows 2020-02-09 11:39:40 +02:00
lb@lb7520
e9ee79bb46 Changes to apk build procedures used with fdroid build.
- mkp4a.init: 1 optional parameter
- mkp4a.unsigned: 2 paramters (sdk and ndk paths)
- mkp4a.preload: new helper script
2020-02-09 11:39:40 +02:00
Shlomi Fish
0c686267b3 valid xhtml5 2020-02-09 11:39:40 +02:00
Shlomi Fish
195890894a Fix the website build.
See https://github.com/shlomif/pysolfc-website/ - do not remove.
2020-02-09 11:39:40 +02:00
Shlomi Fish
6a5287c0b8 gnumakefile cleanup. 2020-02-09 11:39:40 +02:00
Shlomi Fish
05cb36a41f Update .gitignore: add generated files or remove old. 2020-02-09 11:39:40 +02:00
Shlomi Fish
39a4978357 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.
2020-02-09 11:39:40 +02:00