public final class MainController extends Object implements AutoCloseable, Observer
Constructor and Description |
---|
MainController(Stage stage,
ControllerEngine controllerEngine,
UCIEngine searchEngine)
Constructs an instance using the specified engines for game control and searching.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
initialize() |
void |
update(Observable o,
Object arg) |
public MainController(Stage stage, ControllerEngine controllerEngine, UCIEngine searchEngine)
stage
- The current stage.controllerEngine
- The engine that controls the game play by enforcing the rules and storing the positions and game states.searchEngine
- The engine responsible for searching the chess positions.public void initialize()
public void update(Observable o, Object arg)
public void close()
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.