25 Commits

Author SHA1 Message Date
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
Guido Knips
7a62098e94 Un-ignore Cargo.lock
Official cargo documentation says Cargo.lock should be
under version control for binaries (but not for libraries)

see https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2023-08-28 21:06:35 +02:00
alingse
e6c2537780 fix warning 2022-06-04 02:04:24 +08:00
alingse
65ce383213 add 36 play even number game 2022-06-04 02:00:15 +08:00
Martin Thoma
71bae5ded3 Evenwins (Python): Refactored 2022-04-02 09:01:47 +02:00
Martin Thoma
c500424956 Simplify Python Code
print_with_tab / print_with_whitespace is trivial with Python
string formatting and was mostly used in only 2 lines.
2022-04-02 07:32:09 +02:00
Martin Thoma
1b1d50986b Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
2022-03-21 10:41:14 +01:00
Martin Thoma
83b3dc402c Python: Add type annotations 2022-03-20 19:16:39 +01:00
Jeff Atwood
f40a1fc465 add Porting Notes to readme.md for each game 2022-03-18 19:50:22 -07:00
Jeff Atwood
6f6ac93d1f Merge pull request #633 from mojoaxel/js-terminal-style
Add "nice" terminal style stylesheet for javascript html
2022-03-15 23:50:18 -05:00
Jeff Atwood
43f2ec013a add 00_Alternate_Langage folder and move alternate ports there 2022-03-15 20:49:07 -07:00
Martin Thoma
0ba0307767 Python: Fix linting issues
The following Flake8 issues were fixed:

* W291
* W504

* F821
* F401
* F541

* E402
* E711
2022-03-14 13:13:20 +01:00
Alexander Wunschik
f2b3d6f2ed add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +01:00
Martin Thoma
af88007734 Python: Fix Flake8 E722 and E741
Additionally:

* Use functions to group blocks of code
* Use variable names (not just one character...)
2022-03-12 08:17:03 +01:00
Martin Thoma
4adb34f25c Python: Fix code style issues 2022-03-11 07:44:56 +01:00
Martin Thoma
e64fb6795c MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00
Zev Spitz
75def2707d Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02:00
RibTips
41183198a8 added logic/intelligence into the AI
modified the logic from how the computer was making its selections.  Original code had a simple random number, this incorporates the original logic from the BASIC game.
2022-01-04 01:37:57 -05:00
RibTips
55b3c0d4e7 Add files via upload 2022-01-04 01:33:11 -05:00
Jeff Atwood
4263d526a6 Merge pull request #402 from ribtips/main
Perl version of 35_evenwins
2022-01-03 21:41:43 -08:00
RibTips
f98c8af9f8 Perl version of 35_evenwins 2022-01-04 00:21:38 -05:00
Jeff Atwood
5ee452189a Merge pull request #373 from tjd1234/35.evenwins.python
added evenwins.py
2022-01-03 09:13:44 -08:00
LukasMurdock
76c5e1e995 add 17-96 2022-01-03 02:13:21 -05:00
Toby Donaldson
3fd1d6b0af added evenwins.py 2022-01-02 22:57:42 -08:00
Chris Reuter
d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00