Commit af03603c authored by mavomo's avatar mavomo

Rename classes

parent a9a0bbe3
......@@ -3,7 +3,7 @@ package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_communicate_intent_clean {
public class CommunicateIntent_GameOfLife_clean {
private static final int STATUS_VALUE = 0;
private static final int FLAGGED = 4;
......
......@@ -3,7 +3,7 @@ package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_communicate_intent_GameOfLife_cleaner {
public class CommunicateIntent_GameOfLife_cleaner {
private List<Cell> gameBoard;
......@@ -17,8 +17,9 @@ public class Michelle_communicate_intent_GameOfLife_cleaner {
public class Cell {
private boolean flagged;
public boolean isFlagged() {
return flagged ;
return flagged;
}
}
......
......@@ -3,16 +3,16 @@ package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_GameOfLife_communicate_intent_Rot {
public class CommunicateIntent_TheGame_Rot {
private List<int[]> theList;
public List<int[]> getThem(){
public List<int[]> getThem() {
List<int[]> list1 = new ArrayList<>();
for(int[] x : theList)
for (int[] x : theList)
if (x[0] == 4)
list1.add(x);
return list1;
return list1;
}
}
package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_communicate_intent_GameOfLife_Rot {
private List<int[]> theList;
public List<int[]> getThem(){
List<int[]> list1 = new ArrayList<>();
for(int[] x : theList)
if (x[0] == 4)
list1.add(x);
return list1;
}
}
......@@ -5,7 +5,7 @@ package io.soat.names.meaningfulcontext;
*
* @see : Clean code page 28.
*/
public class Michelle_Name_Choice_Algo_Rot {
public class NameChoice_Algo_Rot {
private void printGuessStatistics(char candidate, int count) {
String number;
......
package io.soat.names.meaningfulcontext.better;
public class Michelle_Name_choice_GuessStatisticsMessage_clean {
public class NameChoice_GuessStatisticsMessage_clean {
private String number;
private String verb;
......
package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_GameOfLife_communicate_intent_clean {
private static final int STATUS_VALUE = 0;
private static final int FLAGGED = 4;
private List<int[]> gameBoard;
public List<int[]> getFlaggedCells() {
List<int[]> flaggedCells = new ArrayList<>();
for (int[] cell : gameBoard)
if (cell[STATUS_VALUE] == FLAGGED)
flaggedCells.add(cell);
return flaggedCells;
}
}
package io.soat.names.disinformation.game;
import java.util.ArrayList;
import java.util.List;
public class Michelle_GameOfLife_communicate_intent_cleaner {
private List<Cell> gameBoard;
public List<Cell> getFlaggedCells() {
List<Cell> flaggedCells = new ArrayList<>();
for (Cell cell : gameBoard)
if (cell.isFlagged())
flaggedCells.add(cell);
return flaggedCells;
}
public class Cell {
private boolean flagged;
public boolean isFlagged() {
return flagged ;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment