Commit Graph

19 Commits

Author SHA1 Message Date
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
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
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
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
7e480f9461 Simplify Craps (C#) folder structure 2022-01-17 08:24:39 +02:00
Mark Wieder
f1107ac1fe craps game in ruby 2022-01-16 14:15:59 -08:00
Zev Spitz
75def2707d Add sln and csroj/vbproj files where missing 2022-01-16 08:17:31 +02:00
RibTips
e51103148b The game of craps in perl 29_Craps 2022-01-16 00:34:02 -05:00
Joe Nellis
cb2aeed07c Fix dice roll computation. Remove obscure input prompt for random number generation scrambling. 2022-01-14 12:36:11 -08:00
Joe Nellis
b4c8bfc9c8 Java port of BASIC Craps 2022-01-14 01:43:24 -08:00
Joe Nellis
8245d7badb Breakdown of the original BASIC code for re-implementers of this game. Sample code in BASIC showing distribution of right and wrong dice rolls. 2022-01-14 01:42:44 -08:00
LukasMurdock
76c5e1e995 add 17-96 2022-01-03 02:13:21 -05:00
Thomas Brox Røst
c3e1f309b9 Added Python 3 version of 29, craps. 2022-01-02 12:20:27 +01: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