22 Commits

Author SHA1 Message Date
Aldrin Misquitta
a56a42f52b Fixes the type check failures for python implementations, boxing.py and Stock_Market.py 2024-09-24 15:02:21 +04:00
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
JoeStrout
73137781aa Added MiniScript version of 15_Boxing. 2023-07-23 21:30:37 -07:00
kbrannen
3455848195 added 15-boxing for perl 2023-05-20 02:34:58 -05: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
17a75813b1 Remove tests and alternative Python implementations
Ad discussed here:
https://github.com/coding-horror/basic-computer-games/issues/548#issuecomment-1081008471
2022-03-29 07:02:10 +02:00
Martin Thoma
054d0326ee Boxing (Python): Rename methods for clarity 2022-03-23 21:36:24 +01:00
Martin Thoma
d1ff4bce0e Boxing (Python): Move configuration to JSON files 2022-03-23 21:32:36 +01:00
Martin Thoma
53adcc70d0 BUG: Fix best in Python boxing 2022-03-23 12:26:07 +01:00
Martin Thoma
8ee56f94a1 Boxing (Python): Split configuration from logic 2022-03-23 12:20:06 +01: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
Jeff Atwood
f40a1fc465 add Porting Notes to readme.md for each game 2022-03-18 19:50:22 -07:00
Martin Thoma
f52d9a0e54 Clean Code: Python
Fix issues found by flake8-bugbear:

* Unused loop variables
* assert statements in non-test code
* mixing test code with production code
* mark one excessive test which takes ~10min to run
  as 'slow'
2022-03-18 14:59:08 +01: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
Alexander Wunschik
f2b3d6f2ed add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +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
Yuriy Lyeshchenko
c8fccde889 Implementing https://github.com/coding-horror/basic-computer-games/blob/main/15_Boxing/boxing.bas in C# 2022-01-08 19:00:19 -06:00
LukasMurdock
7e3304c907 add 1-16
16:Bug
“If you elect to see all the pictures, this program has the ability of consuming well over six feet of terminal paper per run. We can only suggest recycling the paper by using the other side.”
2022-01-02 19:06:19 -05: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