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
Oğuz Ersen
75cf4767f0
Update aceyducey.pl
2022-01-04 20:20:00 +00:00
Jeff Atwood
c62e0af2bf
Merge pull request #365 from veelo/d
...
D version of Acey-Ducey.
2022-01-04 10:42:15 -08:00
Bastiaan Veelo
ec43a4fc94
D version of Acey-Ducey.
2022-01-04 11:52:09 +01:00
baka0815
6977afdef0
AceyDucey/pascal: Move Randomize()
...
Randomize() should be called only once and as soon as possible.
2022-01-03 18:24:09 +01:00
Jeff Atwood
6f3d4bd78b
Merge pull request #375 from LukasMurdock/update-readme
...
Update game readme
2022-01-03 07:20:28 -08:00
Jeff Atwood
6414d82709
Merge pull request #377 from aviyam/main
...
Fixes
2022-01-03 07:18:46 -08:00
aviyam
5e8b3b2ad2
Fixed 2 issues:
...
1. Behavior of game play. New cards should be dealt every round.
2. As a result of 1, check that we have at least 3 cards for next round.
2022-01-03 12:42:36 +02:00