MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / setGuessedWord

Method setGuessedWord

Programs/Games/HangMan.java:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public void setGuessedWord(){
30 int length = this.compPick.length();
31 this.guessedWord = new char[length];
32 for(int i = 0; i < length; i++){
33 this.guessedWord[i] = '_';
34 }
35 }
36
37 public void setGuess(String word){
38 this.guesses = (int) (word.length()*1.5);

Callers 1

playMethod · 0.95

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected