Browse Source

Added chess game to App

development
Dion Aliu 3 years ago
parent
commit
a98367671d
  1. 5
      src/main/java/Application/App.java

5
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<Menu> 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;
}

Loading…
Cancel
Save