Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. public class DrawScoreboard {
  2.  
  3. public static String drawScoreboard(int totalGuesses, int incorrectGuesses) {
  4.  
  5. if (totalGuesses == 1 && incorrectGuesses == 0) {
  6. String expected = "+-----+\n"
  7. + "| |\n"
  8. + "| |\n"
  9. + "| |\n"
  10. + "| |\n"
  11. + "+-----+";
  12. return expected;
  13. } else {
  14. String expected =
  15. "+-----+-----+\n" +
  16. "|\\\\ //| |\n" +
  17. "| \\V/ | |\n" +
  18. "| /.\\ | |\n" +
  19. "|// \\\\| |\n" +
  20. "+-----+-----+";
  21. return expected;
  22. }
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement