Browse Source
Merge branch 'TikTakToeGame' into 'main'
Merge branch 'TikTakToeGame' into 'main'
Merge Tik tak toe game into main See merge request fdai7382/fertigjavagamelauncher!2remotes/origin/textadventure
fdai7382
2 years ago
5 changed files with 1182 additions and 6 deletions
-
57JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java
-
1046JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java
-
0JavaGamelauncher/src/main/resources/de/hs_fulda/gruppenprojekt/JavaGamelauncher/media/GameLauncher.ico
-
43JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMainTest.java
-
42JavaGamelauncher/src/test/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGameTest.java
1046
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/TikTakToeGame.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,42 @@ |
|||
package de.hs_fulda.gruppenprojekt.JavaGamelauncher; |
|||
|
|||
import static org.junit.Assert.*; |
|||
|
|||
import java.awt.Color; |
|||
import java.awt.Rectangle; |
|||
|
|||
import org.junit.Test; |
|||
|
|||
public class TikTakToeGameTest { |
|||
|
|||
TikTakToeGame tttg = new TikTakToeGame(); |
|||
|
|||
@Test |
|||
public void nameUeberpruefen() { |
|||
assertTrue(tttg.getTitle() == "TikTakToe Game"); |
|||
} |
|||
|
|||
@Test |
|||
public void startpunkteAbgleichen() { |
|||
tttg.setPunkteSpieler1(0); |
|||
tttg.setpunkteSpieler2(0); |
|||
assertEquals(tttg.PunkteSpieler1, tttg.punkteSpieler2); |
|||
} |
|||
|
|||
@Test |
|||
public void groeßenAbgleich() { |
|||
assertEquals(tttg.size, 600); |
|||
} |
|||
|
|||
@Test |
|||
public void booleanAbgleich() { |
|||
tttg.setGewonnen(true); |
|||
assertEquals(tttg.gewonnen, true); |
|||
} |
|||
|
|||
@Test |
|||
public void SpielerAbgleich() { |
|||
int spieler = 1; |
|||
assertTrue(spieler == tttg.getaktullerSpieler()); |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue