-Method outputDrawText implemented
-Method outputGameOverText Consoletext changed
This commit is contained in:
parent
950489e777
commit
7ed49bfc03
|
@ -60,10 +60,18 @@ public class Language {
|
|||
|
||||
/**
|
||||
* Methode: outputGameOverText
|
||||
* Diese Methode gibt den Text aus, falls es keinen Gewinner gibt und informiert den Nutzer über das Ende des Spiels.
|
||||
* Diese Methode gibt den Text aus, wenn das Spiel zu ende ist.
|
||||
*/
|
||||
public void outputGameOverText(){
|
||||
System.out.println(checkLanguage("Das Spiel ist zu ende! Es ist untentschieden","The Game has finished! We have no winner","Trò chơi kết thúc rồi! Chúng tôi không có người chiến thắng"));
|
||||
System.out.println(checkLanguage("Das Spiel ist zu ende!","The Game has finished!","Trò chơi kết thúc rồi!"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Methode: outputDrawText
|
||||
* Diese Methode gibt den Text aus, falls es Unentschieden ist.
|
||||
*/
|
||||
public void outputDrawText(){
|
||||
System.out.println(checkLanguage("Wir haben keinen Gewinner. Es ist unentschieden","We have no Winner. It's a draw","Chúng tôi không có người chiến thắng."));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -30,6 +30,13 @@ class LanguageTest {
|
|||
viet.outputGameOverText();
|
||||
}
|
||||
|
||||
@Test
|
||||
void outputDrawText(){
|
||||
deutsch.outputDrawText();
|
||||
english.outputDrawText();
|
||||
viet.outputDrawText();
|
||||
}
|
||||
|
||||
@Test
|
||||
void outputNextPlayerText() {
|
||||
deutsch.outputNextPlayerText(1);
|
||||
|
|
Loading…
Reference in New Issue