Implement play() and scoreHand()

This commit is contained in:
Dave Burke
2022-02-09 21:19:04 -06:00
parent 0760f22494
commit 2b2f9327f7
4 changed files with 253 additions and 26 deletions
+5
View File
@@ -58,6 +58,11 @@ public class UserIo {
}
}
public String prompt(String prompt) {
print(prompt + "? ");
return readLine();
}
/**
* Prompts the user for a "Yes" or "No" answer.
* @param prompt The prompt to display to the user on STDOUT.