30 Commits

Author SHA1 Message Date
amjad
a20b3ff31f Merge branch 'sourcery/main' of https://github.com/amjadkofahi/basic-computer-games into sourcery/main 2024-08-19 04:09:55 +03:00
Sourcery AI
71d02673a9 'Refactored by Sourcery' 2024-08-19 03:46:27 +03:00
Rafael Conceição
2aa6776dd7 update train and tower Lua 2023-10-10 11:17:51 +01:00
Rafael Conceição
753327db44 Tower game in Lua 2023-10-06 11:50:51 +01: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
Uğur Küpeli
0f2360797b rust: final 2022-05-06 16:04:34 +03:00
Uğur Küpeli
ece3fe0f52 fixed drawing 2022-05-06 13:22:57 +03:00
Uğur Küpeli
b86c30e89c init
working on draw methods
2022-05-05 02:00:33 +03:00
Martin Thoma
ac184fec42 Python: Type annotations 2022-04-02 10:56:43 +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
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
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
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
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
3b896fc144 Simplify Tower (C#) folder structure 2022-01-17 15:25:01 +02:00
Zev Spitz
75def2707d Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02:00
Jeff Atwood
6f3d4bd78b Merge pull request #375 from LukasMurdock/update-readme
Update game readme
2022-01-03 07:20:28 -08:00
Tom Wyant
708155978c Add Perl port of 90_Tower (Tower of Hanoi) 2022-01-03 06:23:44 -05:00
LukasMurdock
76c5e1e995 add 17-96 2022-01-03 02:13:21 -05:00
Josh Gribbon
b3b460779e Move folder for consistency 2022-01-02 18:50:20 -05:00
eries2
6fcff28bcc added a beter pretty print for each tower. helped my 7yo visualize what was going on 2022-01-02 10:50:22 -08:00
ericries
437b4c2920 Update tower.py
easier debugging with fewer disks
2022-01-01 17:26:04 -08:00
ericries
5e2647682f Add files via upload
Simple python implementation. Apologies for any errors, I only had a minute to whip this up
2022-01-01 17:05:56 -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