added getChar method

This commit is contained in:
Thomas Kwashnak
2022-01-06 08:50:17 -05:00
committed by GitHub
parent fd489bf3da
commit f8cc93aaea

View File

@@ -73,4 +73,15 @@ public class HighIQ {
public void printBoard() { public void printBoard() {
} }
private char getChar(int position) {
Boolean value = board.get(position);
if(value == null) {
return ' ';
} else if(value) {
return '!';
} else {
return 'O';
}
}
} }