Skip to content
Snippets Groups Projects
Commit aa6ba3fe authored by Timon Harries's avatar Timon Harries Committed by Nick
Browse files

Board capitalized

parent cd183c71
No related branches found
No related tags found
1 merge request!2Fehler fix
......@@ -2,35 +2,16 @@ import logic.*;
public class TicTacToe {
private static Board board;
private static final Actor player = new Player();
private static final Actor enemy = new Enemy();
public void startGame(){
board = new Board();
// TODO: GUI initialisieren
}
public startGame(){
Board board = new Board();
// TODO: GUI
// initializeGUI(board);
}
public static void main(String[] args) {
TicTacToe game = new TicTacToe();
game.startGame();
while (!board.checkForWin()){
// Player move
int[] playerMove = player.makeMove(board.gameboard);
board.placeToken(playerMove[0], playerMove[1], player.getSymbol());
// Enemy move
int[] enemyMove = enemy.makeMove(board.gameboard);
board.placeToken(enemyMove[0], enemyMove[1], enemy.getSymbol());
}
// TODO Spiel beenden
// TODO Gewinner verkünden
// TODO Option zum Neustart
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment