Skip to content

Instantly share code, notes, and snippets.

@manolol1
Created May 21, 2024 12:53
Show Gist options
  • Save manolol1/92776d3822080f86b01c49170460c0f9 to your computer and use it in GitHub Desktop.
Save manolol1/92776d3822080f86b01c49170460c0f9 to your computer and use it in GitHub Desktop.
ASCII drawings for hangman game
public class ASCII {
public final String[] hangman = new String[11];
public ASCII() {
hangman[0] = """
_ _ _ _ _____ __ __ _ _
| | | | /\\ | \\ | |/ ____| \\/ | /\\ | \\ | |
| |__| | / \\ | \\| | | __| \\ / | / \\ | \\| |
| __ | / /\\ \\ | . ` | | |_ | |\\/| | / /\\ \\ | . ` |
| | | |/ ____ \\| |\\ | |__| | | | |/ ____ \\| |\\ |
|_| |_/_/ \\_\\_| \\_|\\_____|_| |_/_/ \\_\\_| \\_|
""";
hangman[1] = """
--------------------------
""";
hangman[2] = """
|
|
|
|
|
|
|
--------------------------
""";
hangman[3] = """
-------------
|
|
|
|
|
|
|
--------------------------
""";
hangman[4] = """
-------------
| /
|/
|
|
|
|
|
--------------------------
""";
hangman[5] = """
-------------
| / |
|/
|
|
|
|
|
--------------------------
""";
hangman[6] = """
-------------
| / |
|/ o
|
|
|
|
|
--------------------------
""";
hangman[7] = """
-------------
| / |
|/ o
| -+-
|
|
|
|
--------------------------
""";
hangman[8] = """
-------------
| / |
|/ o
| -+-
| |
|
|
|
--------------------------
""";
hangman[9] = """
-------------
| / |
|/ o
| -+-
| |
| /
|
|
--------------------------
""";
hangman[10] = """
-------------
| / |
|/ o
| -+-
| |
| / \\
|
|
--------------------------
""";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment