mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-07-04 11:46:59 -07:00
Implement play() and scoreHand()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user