Commit Graph

70 Commits

Author SHA1 Message Date
Jeff Atwood
9e0065b0cd Merge pull request #894 from GKnirps/cargo_lock
Un-ignore Cargo.lock
2023-08-28 16:14:36 -07:00
Guido Knips
7a62098e94 Un-ignore Cargo.lock
Official cargo documentation says Cargo.lock should be
under version control for binaries (but not for libraries)

see https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
2023-08-28 21:06:35 +02:00
Guido Knips
fa4f6888dd Fix flake8 issues in acey ducey
- came seemingly out of nowhere and broke my totally unrelated PR
2023-08-28 20:57:27 +02:00
Harrison
da85e13487 Fix bug in win?/3 2023-08-07 16:10:48 -07:00
Harrison
233592bd76 Add an Elixir port of Acey Ducey 2023-08-06 20:35:08 -07:00
Michael Adams
a9666cccc4 Acey Ducey fixes for #869 2023-08-05 15:42:33 -07:00
JoeStrout
5a886283aa MiniScript versions of Acey Ducey, Amazing, Animal, and Awari. 2023-07-10 21:24:15 -07:00
Martin Thoma
e17388d072 Use NamedTuple; Fix camelCase->snake_case 2022-04-02 11:22:40 +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
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
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
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
bf4ac6c3ca Python: Add tests and type annotations 2022-03-22 11:58:30 +01:00
Martin Thoma
373e5a1868 Acey Ducey (Python): Code Cleanup (#667) 2022-03-21 11:03:21 +01:00
Martin Thoma
83b3dc402c Python: Add type annotations 2022-03-20 19:16:39 +01:00
Martin Thoma
82cc6801b7 Acey Ducey: Fix bankroll issue 2022-03-19 10:01:20 +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
Alexander Wunschik
f2b3d6f2ed add terminal-stylesheet for javascript html 2022-03-13 11:23:05 +01:00
Martin Thoma
4adb34f25c Python: Fix code style issues 2022-03-11 07:44:56 +01:00
Martin Thoma
e7520d62af MAINT: Apply 'pre-commit run --all' and fix issues 2022-03-10 06:59:21 +01:00
Martin Thoma
619d9e5253 Acey Ducey (Python): Add unit tests
The unit tests can be executed via:

    $ pip install pytest
    $ pytest .

Also a few more type annotations
2022-03-09 07:32:30 +01:00
Martin Thoma
8cf8bab742 MAINT: Add type annotations / use functions 2022-03-07 22:00:41 +01:00
Seth Cantrell
31a78b24e8 Lua '01_Acey_Ducey' port 2022-03-07 04:13:38 -05: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
berkersal
294353d793 Format prints to be in groups when printed, fix endgame, handle panics caused by user inputs and print self-explanatory error messages 2022-02-20 16:14:15 +03:00
remimimimi
e12ade3656 Refactor code 2022-02-16 17:10:21 +03:00
Alex Kotov
d520f15f14 Create README.md 2022-02-16 05:23:37 +02:00
mur4ik18
281bcbf2a2 🚀 01 in rust complete 2022-02-16 05:19:38 +02:00
mur4ik18
28afbb35aa 🚀 half of game complete 2022-02-16 00:52:33 +02:00
mur4ik18
a97e36e4e3 🚀 Ace game in rust started 2022-02-15 23:17:17 +02:00
0phios
961c762145 Update AceyDucey.vb
- reduce nested do/loop and if/else statements by utilizing subs and functions.
2022-01-21 14:19:16 -04:00
Claus Volko
33af445d20 Delete aceyducey.kt 2022-01-20 10:38:20 +01:00
Claus Volko
ce771b6d3c Create aceyducey.kt 2022-01-20 10:38:04 +01:00
Jeff Atwood
28060923df Merge pull request #520 from zspitz/main
Simplify project structure in line with #381
2022-01-17 09:32:34 -08:00
Claus Volko
a0c2565ada Kotlin implementation of the Acey Ducey game 2022-01-17 17:17:34 +01:00
Zev Spitz
b6373c2525 Rename AceyDucey; fix folder structure 2022-01-17 08:09:28 +02:00
Tim Buchalka
b28a12f52a Document both contributions of this game
Notes relating to both contributed versions of Acey Ducey for Java.
2022-01-12 12:22:37 +10:30
Joe Nellis
00d6881194 Only display player balance if balance isn't zero.
Small formatting change with replay text.
2022-01-09 00:48:55 -08:00
Joseph Nellis
3f8b5b39a9 Merge branch 'coding-horror:main' into main 2022-01-08 22:13:47 -08:00
Joseph Nellis
68e278095d Add files via upload 2022-01-08 20:24:12 -08:00
Eric S. Weilnau
ccb2e5a7c4 Add link to PowerShell implementation 2022-01-08 20:51:33 -05:00
Jeff Atwood
f8fc9f73ce Merge pull request #450 from BillCruise/main
Fixed bug in acey-ducey range.
2022-01-07 15:25:07 -08:00
Robert Flach
ab5301151e Fixed 2 bugs. 1 yes and no both restarted the game 2. zero is supposed to skip the third card but was treated as an invalid bet.
1. In trying as keep as close to the spirit of the original game as possible, there is no handling for an invalidly low number.  
  A zero input prints "chicken" and skips the third card and starts over with 2 new initial cards.   
2. After the wad is blown, anything but a yes answer  to the "Try again" question ends the game
2022-01-07 16:38:29 -06:00
Bill Cruise
d88d3b2987 Fixed bug in acey-ducey range. 2022-01-07 15:48:09 -05:00
Minas
3bdb7be6d1 Fixed the A to be : to make more sense in the first game in java 2022-01-05 14:08:37 +00:00
Eric S Weilnau
cf9c2328b3 Format external links 2022-01-04 18:38:07 -05:00