- Reorganized packages so that the computer agents are inside the model package.
- Added support for the player model inside Referee.java; high scores should now persist over a single execution of the program. - Refactored PlayerModel.java to support game logging. All games are now logged so that we can track overall progress. - Added scaffolding to allow saving and importing of PlayerModel.java. It is not yet functional, but it will be with two function implementations and then the appropriate calls.
This commit is contained in:
13
src/model/comPlayer/generator/MoveGenerator.java
Normal file
13
src/model/comPlayer/generator/MoveGenerator.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package model.comPlayer.generator;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import model.Board;
|
||||
import model.Move;
|
||||
|
||||
public interface MoveGenerator {
|
||||
public static final int ALL_MOVES = 0;
|
||||
|
||||
public Move genMove(Board board, boolean asHuman);
|
||||
public List<Move> genMoves(Board board, boolean asHuman, int nMoves);
|
||||
}
|
||||
Reference in New Issue
Block a user