Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 0a94c19

Browse files
committed
Update Response toString
1 parent 151ceac commit 0a94c19

File tree

1 file changed

+4
-4
lines changed
  • culminating-mastermind/app/src/main/java/mastermind/core

1 file changed

+4
-4
lines changed

culminating-mastermind/app/src/main/java/mastermind/core/Response.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package mastermind.core;
22

3-
import java.util.HashMap;
4-
5-
import mastermind.utils.*;
63
import mastermind.Mastermind;
4+
import mastermind.utils.Tuple2;
5+
6+
import java.util.HashMap;
77

88
public class Response {
99
// (correct count, misplacement count)
@@ -140,6 +140,6 @@ public int hashCode() {
140140
*/
141141
@Override
142142
public String toString() {
143-
return "correct count: " + this.response.first + " misplacement count: " + this.response.second;
143+
return "Black: " + this.response.first + ", White: " + this.response.second;
144144
}
145145
}

0 commit comments

Comments
 (0)