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
Jeff Atwood
354c1f9ab3
Merge pull request #697 from Jay-0331/main
...
rust conversion of stars
2022-04-01 12:46:56 -05:00
Jeff Atwood
7224c4b80c
Merge pull request #696 from coding-horror/py-super-star-trek-oop
...
Super Star Trek (Python): Introduce OOP
2022-04-01 12:41:35 -05:00
Martin Thoma
3a63978d0e
Super Star Trek (Python): Introduce OOP
...
* Avoid encoding values in int; use tuples instead (the memory overhead
is OK today)
* Avoid encoding values in str, use lists instead (same story)
* Use variable names that speak for themselves
* Fix typo (NAVAGATION)
2022-04-01 17:04:14 +02:00
jay-0331
34baeeccce
rust conversion of stars
2022-04-01 17:25:39 +05:30
Jeff Atwood
518b0e9905
Merge pull request #695 from coding-horror/py-super-star-trek
...
Super Star Trek (Python): Refactoring
2022-03-31 15:53:17 -05:00
Martin Thoma
9972ee4073
Super Star Trek (Python): Refactoring
...
* Add 'Ship' class to group code / avoid some global variables /
avoid passing so many parameters around
* Use docstrings
2022-03-31 22:41:16 +02:00
Jeff Atwood
2a0d5d74cd
Merge pull request #694 from coding-horror/py-type-annotations
...
BUG: Hangman (Python) had a List-vs-Str comparison
2022-03-31 13:13:37 -05:00
Jeff Atwood
592a6cfd02
Merge pull request #693 from Jay-0331/patch-1
...
Update for how to run rust translation game
2022-03-31 13:12:17 -05:00
Martin Thoma
61b5a222d1
Lunar (Python): Add type annotations
2022-03-31 12:14:17 +02:00
Martin Thoma
5fef3888eb
Hexapawn (Python): Add type annotations
2022-03-31 12:01:14 +02:00
Martin Thoma
d511a22b5e
Annotate superstartrek
2022-03-31 10:41:30 +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
Jay-0331
6799608a85
Update for how to run rust translation game
...
Hope it is good enough.
2022-03-31 12:06:44 +05:30
Jeff Atwood
b31c624703
Merge pull request #692 from Jay-0331/add-rust-hilo
...
Added Rust Conversion of Hi-Lo
2022-03-30 13:00:14 -05:00
Jeff Atwood
8012d883f2
Merge pull request #691 from coding-horror/acey_ducey_oo.py
...
Restore acey_ducey_oo.py
2022-03-30 12:42:22 -05:00
jay-0331
bd75edba47
Added Rust Conversion of Hi-Lo
2022-03-30 12:31:19 +05:30
Martin Thoma
84bb11eec4
Restore acey_ducey_oo.py
...
See https://github.com/coding-horror/basic-computer-games/pull/689#pullrequestreview-925162345
2022-03-30 08:24:18 +02:00
Jeff Atwood
6c32fc1a3d
Merge pull request #688 from AlaaSarhan/main
...
Blackjack in Ruby
2022-03-29 15:10:54 -05:00
Jeff Atwood
08ddffe2d5
Merge pull request #689 from coding-horror/one-file-rule
...
Remove tests and alternative Python implementations
2022-03-29 15:10:33 -05:00
Alaa Sarhan
3130a3d74d
implement insurance bets
2022-03-29 21:29:00 +02:00
Alaa Sarhan
f3399cd34b
test and fix splitting
2022-03-29 20:54:42 +02:00
Jay-0331
6c4af6b6d5
Hi-Lo (JavaScript): Accept 'yes' in any capitalization ( #690 )
2022-03-29 17:16:34 +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
Alaa Sarhan
b38cf0018a
add initial implementation
2022-03-29 00:31:45 +02:00
Jeff Atwood
6f9cb1bac2
add new rules: no IDE/BUILD and no "enterprise" features
2022-03-28 11:28:21 -07:00
Martin Thoma
d4a1679094
Delete buildJvm directory
...
As discussed here:
https://github.com/coding-horror/basic-computer-games/issues/681#issuecomment-1079728309
2022-03-28 09:43:36 +02:00
Jeff Atwood
8611022bde
Merge pull request #685 from roygilliam/main
...
Initial C# conversion
2022-03-27 19:08:06 -05:00
roygilliam
25e76a3b58
Initial C# conversion
2022-03-26 19:24:17 -04:00
Jeff Atwood
f41c737529
Merge pull request #684 from coding-horror/py-bullseye
...
Bullseye (Python): Refactoring
2022-03-26 11:34:12 -05:00
Martin Thoma
f7bf099152
Bullseye (Python): Refactoring
...
* Use functions to structure code
* Remove 1-line function
* Use dataclass
* Replace dictionaries by a list
2022-03-26 07:05:40 +01:00
Jeff Atwood
8b8e834f5b
Merge pull request #683 from coding-horror/prevent-large-files
...
CI: Prevent large files from being added
2022-03-26 01:00:08 -05:00
Martin Thoma
4250a83705
CI: Prevent large files from being added
2022-03-26 05:52:41 +01:00
Jeff Atwood
0e3aecccfa
Merge pull request #680 from coding-horror/py-bullfight
...
Bullfight (Python): Refactoring
2022-03-25 18:31:50 -05:00
Martin Thoma
cac0e13650
Bullfight (Python): Refactoring
...
* Add Unit Test
* Add Type Annotations
* Use variable/function names
2022-03-25 10:30:23 +01:00
Jeff Atwood
244189e8c8
add another link to run the programs in JSBASIC aka Applesoft BASIC
2022-03-24 13:36:37 -07:00
Jeff Atwood
5e67e1ee57
Merge pull request #675 from coding-horror/py-boxing-refactoring
...
Boxing (Python): Split configuration from logic
2022-03-24 15:33:31 -05:00
Jeff Atwood
ec838f35c5
Update README.md
2022-03-24 12:32:57 -07:00
Jeff Atwood
50b119d055
add link to runnable version of BASIC games in the browser
2022-03-24 12:32:35 -07:00
Jeff Atwood
05c998658d
Merge pull request #679 from taciano-perez/update_superstartrek_java
...
updated implementation with proper OO design, provided link to video
2022-03-24 13:02:24 -05:00
Taciano Dreckmann Perez
a64aa983fe
updated implementation with proper OO design, provided link to video
2022-03-24 18:58:47 +01:00
Jeff Atwood
ab0d8cab74
Merge pull request #676 from coding-horror/py-bug
...
Bug (Python): Refactoring
2022-03-24 12:12:59 -05:00
Jeff Atwood
ab19224660
Merge pull request #678 from coding-horror/py-checkers
...
Checkers (Python): Check if field has valid moves
2022-03-24 12:12:30 -05:00
Martin Thoma
c29c751d21
Checkers (Python): Check if field has valid moves
...
Introduces a new error message:
({start_x}, {start_y}) has no legal moves. Choose again.
Closes #677
Additionally, add type annotations
2022-03-24 14:44:23 +01: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
054d0326ee
Boxing (Python): Rename methods for clarity
2022-03-23 21:36:24 +01:00
Martin Thoma
d1ff4bce0e
Boxing (Python): Move configuration to JSON files
2022-03-23 21:32:36 +01:00
Jeff Atwood
e8ba8bdf24
Merge pull request #674 from coding-horror/py-test-3
...
Python: Add tests for bounce and bowling
2022-03-23 13:58:09 -05:00
Martin Thoma
e66d2df028
Python: Add tests for bounce and bowling
2022-03-23 18:44:52 +01:00
Martin Thoma
53adcc70d0
BUG: Fix best in Python boxing
2022-03-23 12:26:07 +01:00