36 Commits

Author SHA1 Message Date
Andrew Cooper 8f09273ab7 Add print gap 2022-07-14 00:41:36 +10:00
Andrew Cooper 6e47d7fbfd Fix game loop and finished message 2022-07-14 00:39:17 +10:00
Andrew Cooper 98344717f7 CSHARP-16 Fix printing bug 2022-07-14 00:24:10 +10:00
Andrew Cooper a648ebf044 Fix adding parts 2022-07-13 08:15:46 +10:00
Andrew Cooper 013baf71a2 Add game loop 2022-07-13 08:04:47 +10:00
Andrew Cooper 04ec0f8f47 Add printing of bugs 2022-07-13 08:04:35 +10:00
Andrew Cooper be9f0a92f8 Add Bug and conecpt of completeness 2022-07-12 07:41:45 +10:00
Andrew Cooper 6078da8c78 Add parts and messages 2022-07-12 07:27:11 +10:00
Andrew Cooper f35bbb0224 Fix some resource issues 2022-07-06 07:52:59 +10:00
Andrew Cooper ffc0b99fa3 Display title and instructions 2022-07-06 07:48:23 +10:00
Andrew Cooper 832371dc07 Add string resources 2022-07-06 07:46:16 +10: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 8d5e3d1d0f Bug (Python): Refactoring
- Rename files to follow PEP8 convention / make them testable
- Add type annotations
- Fix Flake8 issues
- Variable naming
- Add unit test
2022-03-24 12:37:59 +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
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 489de52aaf Merge pull request #650 from arjieng/ruby-bug-game
Ruby version for #16 Bug game
2022-03-18 10:55:55 -05: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
Argie Bacomo e897bb62aa Ruby version for #16 Bug game 2022-03-18 17:28:12 +08: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 6dde69f274 Python: Fix Flake8 issue E712 + PEP8 variable naming 2022-03-11 21:42:23 +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
Peter Sharp f256da75cf Renames bug to bug-overengineereed
Updates description to match
2022-02-22 11:55:02 -07:00
Peter Sharp c7386b795a Adds comments 2022-02-22 11:54:11 -07:00
Peter Sharp 67e6481f0c Adds bug python game 2022-02-22 11:53:44 -07:00
uMetalooper e77ca9b983 Bug game added 2022-02-20 21:42:51 +00:00
Steve Bosman 8ba115287e Improve and modernise javascript for 16 Bug
Introduce some named variables
Case insensitive inputs
Fix delay so that it happens correctly and ensure the page scrolls when it gets too long.
2022-01-28 23:10:25 +00: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
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