|
|
@ -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; |
|
|
|
} |
|
|
|