Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A common word-guessing game, usually involving a pictorial representation of a stick figure being hanged, progressively rendered for each wrong guess
5
votes
Accepted
Hangman program in Java
Is it ok to have so many static member variables?
No, it's almost always a sign of bad design (and not just because of the static variables, but also the static functions; only utility functions …
10
votes
Hangman game in Java - second try
As I said in the comments, your code improved a lot, so that's really good.
You should try out code analysis tools such as FindBugs, PMD, or Checkstyle. You don't have to listen to everything they sa …
4
votes
Accepted
Hangman game in Java
Missing Functionality
As I know hangman, the letters that were guessed are written down. You should also save them and print them out each time, otherwise the user has to remember this. … Bug
If I play a game, lose, and then print out all words, the hangman board is printed as well.
Game Loop
Use a game loop instead of your repeated calls to playHangman. …
3
votes
Accepted
Hangman game using Java 8
Comments
any feedback regarding the use of JavaDoc style comments is welcome.
The structure of your method comments is:
/** methodName - what method does */
But JavaDocs are actually structu …