Commit Graph

5 Commits

Author SHA1 Message Date
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
LukasMurdock
5c994e9562 typos 2022-01-01 20:45:19 -05:00
LukasMurdock
c2dc4c8b38 update acey_ducey 2022-01-01 20:09:24 -05: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
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