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

Method isAlreadyTold

Programs/Games/GuessTheNumber.java:32–39  ·  view source on GitHub ↗
(int guess)

Source from the content-addressed store, hash-verified

30 }
31
32 public boolean isAlreadyTold(int guess){
33 for(int i = 0; i < 10; i++){
34 if(guess == this.alreadyTold[i]){
35 return true;
36 }
37 }
38 return false;
39 }
40 public void printGuessed(){
41 for(int i = 0; i < 10; i ++){
42 if(alreadyTold[i] != -1)

Callers 1

playMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected