2022-03-11 12:08:17 +01:00
|
|
|
package ch.zhaw.pm2.racetrack;
|
|
|
|
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
|
|
|
|
public class Main {
|
|
|
|
|
2022-03-18 10:19:23 +01:00
|
|
|
public static void main(String[] args) throws InvalidTrackFormatException, FileNotFoundException, PositionVectorNotValid {
|
2022-03-11 12:08:17 +01:00
|
|
|
UserInterface userInterface = new UserInterface("Hello and Welcome");
|
|
|
|
Game game = new Game(userInterface);
|
2022-03-18 10:37:53 +01:00
|
|
|
int winner = 0;
|
2022-03-11 12:08:17 +01:00
|
|
|
if(game.initPhase()){
|
2022-03-18 10:37:53 +01:00
|
|
|
winner = game.gamePhase();
|
2022-03-11 12:08:17 +01:00
|
|
|
}
|
2022-03-18 10:37:53 +01:00
|
|
|
userInterface.printInformation("Winner: " + winner);
|
2022-03-11 12:08:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|