Commit Graph

32 Commits

Author SHA1 Message Date
drewjcooper
b5d573f075 More use of grid 2023-04-04 17:29:50 +10:00
drewjcooper
f5b2fe6e8a Add Ship type 2023-03-28 22:56:35 +11:00
drewjcooper
579e18d8c6 Fix some bugs 2023-03-13 08:33:48 +11:00
drewjcooper
a936de69d1 Introduce Coordinate 2023-03-09 08:17:39 +11:00
drewjcooper
a068319034 Rename Coordinates to Position 2023-03-08 08:17:56 +11:00
drewjcooper
ee9bfec90e Introduce Grid 2023-03-08 08:13:00 +11:00
drewjcooper
0089593453 Add coordinate loops 2023-03-07 08:34:55 +11:00
drewjcooper
a6d191261d Introduce Coordinate and Offset 2023-03-06 08:50:21 +11:00
drewjcooper
cfc7def425 Simplify some logic 2023-03-05 21:03:40 +11:00
drewjcooper
ca4b4a9373 Rename variables 2023-03-04 18:54:49 +11:00
drewjcooper
e5530d67c8 Transliterate logic 2023-02-26 23:40:45 +11:00
drewjcooper
e6425221bf Create program structure 2023-02-19 19:58:24 +11:00
drewjcooper
846be86481 Configure project 2023-02-17 07:52:45 +11:00
Jeff Atwood
806ce22d53 add porting notes about potential bug 2022-04-28 11:40:32 -07:00
Martin Thoma
4b3b991273 Use docstrings 2022-04-02 08:10:01 +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
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
f192a3db36 Python: Add test for 9 / 10 / 11 / 12 2022-03-22 21:26:52 +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
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
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
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
LukasMurdock
76c5e1e995 add 17-96 2022-01-03 02:13:21 -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