From 3bf29b6f123a3d38047000ad1855be7ec5d91869 Mon Sep 17 00:00:00 2001 From: aconconi Date: Sat, 8 Oct 2022 13:08:17 +0200 Subject: [PATCH] minor edits --- 29_Craps/lua/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/29_Craps/lua/README.md b/29_Craps/lua/README.md index 091ddb4c..aac11dd0 100644 --- a/29_Craps/lua/README.md +++ b/29_Craps/lua/README.md @@ -4,14 +4,14 @@ Conversion to [Lua](https://www.lua.org/) by Alex Conconi --- -#### Lua porting notes +### Lua porting notes - The `craps_main` function contains the main game loop, which iteratively plays craps rounds by calling `play_round` and tracks winnings and losings. - Replaced the original routine that tries to scramble the random number generator with a proper seed initializer in Lua: `math.randomseed(os.time())` (as advised in the general porting notes). -= Added basic input validation to accept only positive integers for the +- Added basic input validation to accept only positive integers for the wager and the answer to the "If you want to play again print 5" question. - "If you want to play again print 5 if not print 2" reads a bit odd but we decided to leave it as is and stay true to the BASIC original version. \ No newline at end of file