From a98367671dcc5a3a4acd5d4bb7a6979fe9673c0d Mon Sep 17 00:00:00 2001 From: Dion Aliu Date: Thu, 3 Feb 2022 18:10:59 +0100 Subject: [PATCH] Added chess game to App --- src/main/java/Application/App.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/Application/App.java b/src/main/java/Application/App.java index 751218f..4929b65 100644 --- a/src/main/java/Application/App.java +++ b/src/main/java/Application/App.java @@ -2,6 +2,7 @@ package Application; import Game.Game; import Game.Tictactoe; +import Game.Chess; import java.util.ArrayList; import java.util.Scanner; @@ -69,6 +70,7 @@ public class App { ArrayList gameList = new ArrayList<>(); gameList.add(new Menu("Tic Tac Toe")); + gameList.add(new Menu("Chess")); Menu gameMenu = new Menu("Games"); @@ -105,6 +107,9 @@ public class App { case "Tic Tac Toe": setCurrentGame(new Tictactoe()); return; + case "Chess": + setCurrentGame(new Chess()); + return; default: break; }