almost working
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package chess;
|
||||
|
||||
import chess.ai.AlphaBetaAI;
|
||||
import chess.ai.DumbAI;
|
||||
import chess.ai.HungryAI;
|
||||
import chess.controller.CommandExecutor;
|
||||
@@ -18,12 +19,15 @@ public class SwingMain {
|
||||
Window window = new Window(commandExecutor, false);
|
||||
commandExecutor.addListener(window);
|
||||
|
||||
DumbAI ai = new DumbAI(commandExecutor, Color.Black);
|
||||
DumbAI ai = new DumbAI(commandExecutor, Color.White);
|
||||
commandExecutor.addListener(ai);
|
||||
|
||||
HungryAI ai2 = new HungryAI(commandExecutor, Color.White);
|
||||
AlphaBetaAI ai2 = new AlphaBetaAI(commandExecutor, Color.Black, 3);
|
||||
commandExecutor.addListener(ai2);
|
||||
|
||||
// Window window2 = new Window(ai2.getSimulation(), false);
|
||||
// ai2.getSimulation().addListener(window2);
|
||||
|
||||
commandExecutor.addListener(new GameAdaptator(){
|
||||
@Override
|
||||
public void onGameEnd() {
|
||||
|
||||
Reference in New Issue
Block a user