mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Turned Abstract Method for AI into interface
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package org.toop.game;
|
package org.toop.game;
|
||||||
|
|
||||||
import org.toop.game.records.Move;
|
import org.toop.game.interfaces.IAIMove;
|
||||||
|
|
||||||
public abstract class AI<T extends Game> {
|
public abstract class AI<T extends Game> implements IAIMove<T> {
|
||||||
public abstract Move findBestMove(T game, int depth);
|
|
||||||
}
|
}
|
||||||
8
game/src/main/java/org/toop/game/interfaces/IAIMove.java
Normal file
8
game/src/main/java/org/toop/game/interfaces/IAIMove.java
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package org.toop.game.interfaces;
|
||||||
|
|
||||||
|
import org.toop.game.Game;
|
||||||
|
import org.toop.game.records.Move;
|
||||||
|
|
||||||
|
public interface IAIMove <T extends Game>{
|
||||||
|
Move findBestMove(T game, int depth);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user