Turned Abstract Method for AI into interface

This commit is contained in:
2025-10-29 15:01:58 +01:00
parent d17edf7c4a
commit 50713c5021
2 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
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 Move findBestMove(T game, int depth);
public abstract class AI<T extends Game> implements IAIMove<T> {
}

View 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);
}