mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-12 15:50:20 -08:00
Hi-Lo (JavaScript): Accept 'yes' in any capitalization (#690)
This commit is contained in:
@@ -86,6 +86,7 @@ async function main()
|
||||
print("\n");
|
||||
print("PLAY AGAIN (YES OR NO)");
|
||||
str = await input();
|
||||
str = str.toUpperCase();
|
||||
if (str != "YES")
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user