Sourcery AI
71d02673a9
'Refactored by Sourcery'
2024-08-19 03:46:27 +03:00
kbrannen
f669347468
removed uneeded line
2023-04-20 12:33:38 -05:00
kbrannen
a5584b4014
Added 2 versions of the perl 07-basketball game.
...
Also updated the README.
2023-04-20 12:23:44 -05:00
Andrew Cooper
c6d018acef
Fix 0 shot for new defense
2022-04-12 17:51:18 +10:00
Andrew Cooper
f4fa4f230b
Fix action resolution
2022-04-12 17:47:24 +10:00
Andrew Cooper
c45fb59747
Simplify play continuation logic
2022-04-11 08:45:29 +10:00
Andrew Cooper
fd159ac582
Some cleanup
2022-04-11 08:45:24 +10:00
Andrew Cooper
0e1ef8fc46
Cleanup Game creation and main loop
2022-04-11 08:45:19 +10:00
Andrew Cooper
11ee731832
Encapsulate shot number and name
2022-04-11 08:45:15 +10:00
Andrew Cooper
1ce5f7b3a7
Resolve play resolution helper methods
2022-04-11 08:45:04 +10:00
Andrew Cooper
99b52e6861
Move full time messages to game loop
2022-04-11 08:44:59 +10:00
Andrew Cooper
b8da97a7a3
Break out classes for resolving plays
2022-04-11 08:44:53 +10:00
Andrew Cooper
aaaadc04ea
Add probabilistic branching helper
2022-04-11 08:44:48 +10:00
Andrew Cooper
029e27cd2c
Fix game loop
2022-04-11 08:44:42 +10:00
Andrew Cooper
1ba6dd48aa
Split out play resolution
2022-04-11 08:44:32 +10:00
Andrew Cooper
741b135d99
Simplify messaging
2022-04-11 08:44:27 +10:00
Andrew Cooper
74698c41c4
Add Scoreboard abstraction
2022-04-11 08:44:22 +10:00
Andrew Cooper
9106c2e13c
Transliterate game logic
2022-04-11 08:41:12 +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
ae0b6a5015
BUG: Hangman (Python) had a List-vs-Str comparison
...
MAINT: Add type annotations to find such issues
2022-03-31 10:33:11 +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
Argie Bacomo
fda4cef751
Basketball ruby version
2022-03-21 16:00:06 +08: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
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
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
75def2707d
Add sln and csroj/vbproj files where missing
2022-01-16 08:17:31 +02:00
Jackson Brouwer
75cca25c38
Bug fix on defense change
2022-01-12 22:50:00 -06:00
Jackson Brouwer
0c91432e5a
Added Basketball Java Version
2022-01-12 22:47:27 -06:00
Jackson Brouwer
e0b041dfd7
Python version
2022-01-09 15:05:24 -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