Added more stuffs to README. Cleaned up code

This commit is contained in:
2023-01-17 09:46:57 +07:00
parent 5a30b9ec12
commit 8a39daf70a
7 changed files with 145 additions and 424 deletions
+2 -3
View File
@@ -23,7 +23,6 @@ import model.Connect4MoveMessage;
import model.IllegalArgumentException;
import model.Minimax_AlphaBeta;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
@@ -66,7 +65,7 @@ public class Connect4 extends Application implements Runnable {
* @param primaryStage the window of the GUI
*/
@Override
public void start(Stage primaryStage) throws Exception {
public void start(Stage primaryStage) {
boolean foundSerializedFile = this.deserializeGameModel();
if (!foundSerializedFile) {
initGame();
@@ -212,7 +211,7 @@ public class Connect4 extends Application implements Runnable {
/**
* This method is to set the GUI to the center of the pane
*
* @param newView
* @param newView Passing a new view to
*/
private void setViewTo(Observer newView) {
window.setCenter(null);