Main TicTacToe Gamesimulation made
This commit is contained in:
parent
66f0eba365
commit
215a1ef726
|
@ -52,7 +52,7 @@ public class Language {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
System.out.println(checkLanguage(
|
System.out.println(checkLanguage(
|
||||||
"Diese Sprache ist nicht zulässig",
|
"Diese Sprache ist nicht zulässig.",
|
||||||
"This Language is not valid",
|
"This Language is not valid",
|
||||||
"Ngôn ngữ này không được phép"));
|
"Ngôn ngữ này không được phép"));
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -31,6 +31,15 @@ public class TicTacToe {
|
||||||
* Game g = new Game();
|
* Game g = new Game();
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Game g1 = new Game();
|
|
||||||
|
// Es wurde nun ein Spiel simuliert, wo es zu einem Sieg von Spieler 1 kommt.
|
||||||
|
// Weitere vorbereitete Simulationen finden Sie auch in der Klasse GameTest.
|
||||||
|
Game game = new Game();
|
||||||
|
game.placeField(1);
|
||||||
|
game.placeField(2);
|
||||||
|
game.placeField(4);
|
||||||
|
game.placeField(3);
|
||||||
|
game.placeField(7);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue