Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DrawScoreboard {
- public static String drawScoreboard(int totalGuesses, int incorrectGuesses) {
- if (totalGuesses == 1 && incorrectGuesses == 0) {
- String expected = "+-----+\n"
- + "| |\n"
- + "| |\n"
- + "| |\n"
- + "| |\n"
- + "+-----+";
- return expected;
- } else {
- String expected =
- "+-----+-----+\n" +
- "|\\\\ //| |\n" +
- "| \\V/ | |\n" +
- "| /.\\ | |\n" +
- "|// \\\\| |\n" +
- "+-----+-----+";
- return expected;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement