Package sudoku
Class TeacherMemory
- java.lang.Object
-
- sudoku.TeacherMemory
-
public class TeacherMemory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private int_maxPlayerCountprivate int_maxTableCountprivate Set<Integer>_normalTablesprivate int_playerResetCountprivate int_playerRewardedCountprivate Set<Integer>_tableIdsConsideredDeadprivate int_tableResetCountprivate Set<Integer>_tablesNotFinished
-
Constructor Summary
Constructors Constructor Description TeacherMemory(int playerCount, int tableCount, HashSet<Integer> normalTables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddPlayerReset()booleanaddPlayerRewarded()intaddTableFinished(int tableId)booleanaddTableReset()private booleanallResetsCollected()int[]getTablesNotFinished()(package private) voidreset()voidsetNormalTables(HashSet<Integer> normalTables)voidsetTableIdsConsideredDead(int[] tableIdsConsideredDead)
-
-
-
Method Detail
-
allResetsCollected
private boolean allResetsCollected()
-
addPlayerRewarded
public boolean addPlayerRewarded()
-
addPlayerReset
public boolean addPlayerReset()
-
addTableReset
public boolean addTableReset()
-
addTableFinished
public int addTableFinished(int tableId)
-
getTablesNotFinished
public int[] getTablesNotFinished()
-
reset
void reset()
-
setTableIdsConsideredDead
public void setTableIdsConsideredDead(int[] tableIdsConsideredDead)
-
-