Commit Graph

42 Commits

Author SHA1 Message Date
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
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
Bastiaan Veelo e8ec059b49 Fix minor typo in Basic source of Acey-Ducey.
As compared to the printed version.
2022-01-03 00:28:24 +01:00
Anachostic b2f04257cc VB.NET version of Acey-Ducey 2022-01-02 14:00:05 -05:00
Jeff Atwood d02938cd91 Merge pull request #351 from torifat/fix-acey-ducey-ruby-bug
Fix duplicate card bug
2022-01-02 09:58:50 -08:00
Rifat Nabi ad170ac3c2 Fix duplicate card bug 2022-01-03 03:26:45 +11:00
aviyam daea544c5f AceyDucey in python, OO implementation.
More verbose then original game with a 'what would have happened' addition.
2022-01-02 17:14:56 +02:00
Jeff Atwood f622d7545c Merge pull request #337 from LukasMurdock/edits
Further change Acey Ducey JavaScript
2022-01-01 19:35:40 -08:00
LukasMurdock 5c994e9562 typos 2022-01-01 20:45:19 -05:00
LukasMurdock c2dc4c8b38 update acey_ducey 2022-01-01 20:09:24 -05:00
doctorgraphics 6935e24ae3 Update aceyducey.py
Correct misspelled word "assement" to "assessment"  on line 177
2022-01-01 15:20:20 -08:00
Domenic Denicola 88b964b9ae Improve Acey Ducey JavaScript port
Notable changes:

* Use informative variable names instead of q, a, b, m, and c
* Use a lookup table instead of chained ifs for face cards
* Refactor I/O helpers into a separate file
* Refactor random card logic into its own function
* Support any case for "yes" input
* Add a few comments to non-obvious parts of the game logic
* Insert "HERE IS THE CARD WE DREW:" into the output since just printing the card was pretty confusing
* Make indentation uniform
* Make bracing style uniform
* Use conventional JavaScript camelCasing
* Use top-level await in a module instead of a main() function
* Clean up the HTML shell page for modern best practices (including a mobile-friendly viewport)
2022-01-01 16:04:33 -05:00
Scott Halgrim f0f5c38c02 fix typo 2022-01-01 10:53:17 -08: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