Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void spielStart(char[][] botFeld, char[][] playerFeld){
- schiffSetzen(playerFeld);
- int ende;
- do {
- playerSchuss(botFeld);
- botSchuss(playerFeld);
- ausgabeGesamt(playerFeld);
- ende = checkWin(botFeld, playerFeld);
- } while (ende == 0); // end of do-while
- System.out.println();
- if (ende == 1) {
- System.out.println("Du hast gewonnen !!!");
- } // end of if
- else if(ende == 2){
- System.out.println("Der Computer hat gewonnen !!!");
- } // end of if-else
- else {
- System.out.println("Unentschieden !!!");
- } // end of if-else
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement