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

55 commits

Author SHA1 Message Date
Shlomi Fish
21a671a8e2 add dash-dash-version-cli-flag
"--version"
2022-10-28 09:43:38 +03:00
Juhani Numminen
515f77f0fa Fix files left open after reading 2021-07-07 18:13:34 +03:00
Juhani Numminen
076ee8d11a Run unittests via a single TAP test
Enable standard unittest discovery by creating __init__.py files
and renaming test modules to test*.py.
2021-07-07 18:13:34 +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
e2c11a7ba0 fix flake8 + tidyall tests 2020-08-27 11:52:59 +03:00
Shlomi Fish
2a04901a77 fix flake8 tests 2020-06-17 10:04:31 +03:00
Shlomi Fish
653e84b049 avoid duplicate code. 2020-06-16 10:34:05 +03:00
Shlomi Fish
d04601ad1c add a test for ScorpionTail_RowStack.
A similar bug was fixed in Scorpion_RowStack.
2020-06-16 10:34:05 +03:00
Shlomi Fish
408a8fbb08 fix flake8 tests 2020-06-12 07:07:31 +03:00
Shlomi Fish
a219bdb29c temp fix for reset() in pysolfc/mtrandom deals.
See: https://github.com/shlomif/PySolFC/issues/163 . Thanks
to @RobertAJMarshall .
2020-05-27 09:10:25 +03:00
Shlomi Fish
2437c702fd extract more code to pysol_cards 2020-05-26 18:56:14 +03:00
Shlomi Fish
12cf1e507f Rename variable/s to make them more descriptive. 2020-05-25 14:06:08 +03:00
Shlomi Fish
91ef2ca74e extract more code to pysol_cards 2020-05-24 22:13:09 +03:00
Shlomi Fish
39f181e087 Python2 compatibility: travis rebuild for new pysol-cards 2020-03-28 16:08:42 +03:00
Shlomi Fish
e615b64dfc typo 2020-03-28 15:22:22 +03:00
Shlomi Fish
f1aedee62c move to upstream PyPI pysol_cards 2020-03-28 14:57:17 +03:00
Shlomi Fish
4ee74a3e2a move to upstream PyPI pysol_cards 2020-03-28 14:55:09 +03:00
Shlomi Fish
5b80116b69 move to upstream PyPI pysol_cards 2020-03-28 14:39:00 +03:00
Shlomi Fish
7d55cd045c move to upstream PyPI pysol_cards 2020-03-28 14:34:12 +03:00
Shlomi Fish
c71c2fa07a Fix the 'picturegallery' game.
See https://github.com/shlomif/PySolFC/issues/140 . Thanks to
@scottfurry for testing.
2019-08-07 12:28:29 +03:00
Shlomi Fish
602f9ebc93 add missing attribute.
See https://github.com/shlomif/PySolFC/issues/129 .
2019-07-26 00:04:07 +03:00
Shlomi Fish
4a53c175f5 Extract ms_rearrange . 2019-06-05 15:00:12 +03:00
Shlomi Fish
2bec58be2d Fix next deal / Ctrl+N for ms deals. 2019-05-23 19:10:57 +03: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
204bc6b5fa optimize travis.yml 2019-01-26 19:53:49 +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
5e10f11ca5 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-12-06 23:49:44 +02:00
Shlomi Fish
2b2d23f958 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.
2018-12-06 23:41:49 +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
5febb53706 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.
2018-10-09 13:08:45 +03: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
895bedff00 remove already autogenerated boilerplate.
It was no longer used or needed.
2018-07-23 19:10:28 +03:00
Shlomi Fish
a8f297208b Refactoring: generate dup code. 2018-05-12 20:45:21 +03:00
Shlomi Fish
f630539e88 gracefully handle import. 2018-05-11 14:29:46 +03:00
Shlomi Fish
a9e23ae7de Refactor - extract a method. 2018-05-11 13:54:15 +03:00
Shlomi Fish
05f3e3027f Convert to an exception object.
To avoid getting wedged.
2018-05-11 13:40:13 +03:00
Shlomi Fish
93f88ba514 Convert to the CPAN distro.
See https://metacpan.org/release/Code-TidyAll-Plugin-Flake8 .
2018-05-10 17:07:02 +03:00
Shlomi Fish
0a05c3c9cf Speedup the test suite by tidyall caching.
Of flake8. TODO: put on CPAN.
2018-05-08 00:28:58 +03:00
Shlomi Fish
4b75005b28 Start adding support for handling parse errs.
in the importFile feature. Still does not work fully.
2018-05-07 23:29:14 +03:00
Shlomi Fish
9eab5fe6bf support utf8 bom import. 2018-05-02 20:18:01 +03:00
Shlomi Fish
9ddaa7e110 Refactor. 2018-05-01 18:22:15 +03:00
Shlomi Fish
724b6f8688 rename better. 2018-05-01 18:12:35 +03:00
Shlomi Fish
6db30de668 remove unused 2018-05-01 18:08:15 +03:00
Shlomi Fish
2f114469b5 add py2 tests 2018-05-01 17:52:17 +03:00
Shlomi Fish
6304994ed4 add py2 tests 2018-05-01 17:45:37 +03:00
Shlomi Fish
6ec197daaf Add py2 tests. 2018-05-01 17:36:41 +03:00
Shlomi Fish
665985ec6d Add python2 tests. 2018-05-01 17:09:12 +03:00
Shlomi Fish
39cd81d663 Refactor/optimize: get rid of TAP.Simple.
It was underused and unneeded.
2018-04-15 17:41:09 +03:00
Shlomi Fish
53bc1fb8eb meaningul test blurb. 2018-03-24 23:04:07 +03:00