Browse Source

final commit

De'Jon Johnson 6 years ago
parent
commit
3d9117d8aa
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/main/java/rocks/zipcode/io/quiz3/arrays/TicTacToe.java

+ 4
- 4
src/main/java/rocks/zipcode/io/quiz3/arrays/TicTacToe.java View File

30
 
30
 
31
     public Boolean isRowHomogenous(Integer rowIndex) {
31
     public Boolean isRowHomogenous(Integer rowIndex) {
32
 
32
 
33
-        String[] newArray = board[rowIndex];
34
-        String holder = newArray[0];
35
-        for( int i =0; i<newArray.length; i++)
36
-            if(!newArray[i].equals(holder)){
33
+        String[] differentArray = board[rowIndex];
34
+        String counter = differentArray[0];
35
+        for( int i =0; i<differentArray.length; i++)
36
+            if(!differentArray[i].equals(counter)){
37
                 return false;
37
                 return false;
38
             }
38
             }
39
 
39