Commit Graph

24 Commits

Author SHA1 Message Date
Joe Nellis
882117758d Bagels in Lua. 2022-04-13 02:57:15 -07: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
bf4ac6c3ca Python: Add tests and type annotations 2022-03-22 11:58:30 +01:00
Martin Thoma
83b3dc402c Python: Add type annotations 2022-03-20 19:16:39 +01:00
Martin Thoma
8de3176348 Add Python tests 2022-03-19 12:20:57 +01:00
Martin Thoma
3c3c725393 Avoid global variables 2022-03-19 10:13:47 +01:00
Martin Thoma
8495e59a8f Python: Make code testable
Avoid executing code on module level as this prevents importing the
module for testing. Especially infinite loops are evil.
2022-03-19 09:54:52 +01:00
Jeff Atwood
f40a1fc465 add Porting Notes to readme.md for each game 2022-03-18 19:50:22 -07:00
Martin Thoma
3b2739b8a2 Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI

For flake8-simplify, there are a few false-positives,
e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
2022-03-18 22:29:56 +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
Martin Thoma
5374569063 Python: Fix string concatenation 2022-03-15 13:57:28 +01:00
Claus Volko
97903b754d Merge pull request #1 from adokhugi/adokhugi-patch-1
Create bagels.kt
2022-03-13 15:13:40 +01:00
Claus Volko
d4ad8aac7b Create bagels.kt
A Kotlin implementation of the Bagels game
2022-03-13 15:09:38 +01:00
Alexander Wunschik
f2b3d6f2ed add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +01:00
Till Klister
3b1a1c2f18 Add Rust port of 05_Bagels 2022-03-12 01:58:09 +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
2d44db49a4 Fix RootNamespace and LangVersion 2022-01-17 23:01:42 +02:00
Zev Spitz
75def2707d Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02: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
James Allenspach
e37cad9ae3 Modified comment 2022-01-02 10:18:35 -06:00
James Allenspach
7605116b06 Initial commit 2022-01-02 10:14:23 -06: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