-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ro18/dev-rochelle
changed yaml file
- Loading branch information
Showing
11 changed files
with
230 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/main/java/project/app/warzone/Utilities/Maps/MiddleEast-Qatar.map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
; map: MiddleEast-Qatar.map | ||
; map made with the map maker | ||
; yura.net Risk 1.0.9.7 | ||
|
||
[files] | ||
pic MiddleEast-Qatar_pic.png | ||
map MiddleEast-Qatar_map.gif | ||
crd MiddleEast-Qatar.cards | ||
|
||
[continents] | ||
Qatar_North 7 #8580ff | ||
Qatar_South 7 #80ff8f | ||
Islands 4 #9d80ff | ||
Saudi_Arabia 5 #80ff9e | ||
|
||
[countries] | ||
1 1 1 547 213 | ||
2 2 1 495 266 | ||
3 3 1 473 184 | ||
4 4 1 417 237 | ||
5 5 1 396 187 | ||
6 6 1 339 162 | ||
7 7 1 322 231 | ||
8 1 2 160 152 | ||
9 2 2 189 237 | ||
10 3 2 238 198 | ||
11 4 2 267 157 | ||
12 5 2 264 275 | ||
13 6 2 295 267 | ||
14 7 2 287 210 | ||
15 8 2 325 268 | ||
16 1 4 67 39 | ||
17 2 4 272 25 | ||
18 3 4 233 69 | ||
19 4 4 60 182 | ||
20 5 4 88 220 | ||
21 1 3 450 131 | ||
22 2 3 537 67 | ||
23 3 3 574 68 | ||
24 4 3 601 61 | ||
|
||
[borders] | ||
1 24 3 2 | ||
2 1 4 | ||
3 1 4 21 5 | ||
4 3 2 5 7 15 | ||
5 4 21 6 3 | ||
6 5 14 7 11 21 | ||
7 4 13 15 14 6 | ||
8 10 9 20 19 16 11 | ||
9 10 12 8 20 | ||
10 14 11 9 13 8 | ||
11 14 10 18 6 8 | ||
12 9 13 | ||
13 15 7 10 12 | ||
14 7 11 6 10 | ||
15 4 13 7 | ||
16 17 18 8 19 | ||
17 22 18 16 | ||
18 17 16 11 | ||
19 8 20 16 | ||
20 8 19 9 | ||
21 22 5 3 6 | ||
22 23 21 17 | ||
23 24 22 | ||
24 23 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
|
||
logging.level.root=OFF | ||
spring.main.banner-mode=OFF |
71 changes: 71 additions & 0 deletions
71
src/test/java/project/app/warzone/WarzoneApplicationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package project.app.warzone; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
import project.app.warzone.Features.PlayerFeatures; | ||
import project.app.warzone.Model.GameEngine; | ||
import project.app.warzone.Model.Map; | ||
import project.app.warzone.Model.Player; | ||
|
||
|
||
class WarzoneApplicationTest { | ||
|
||
public List<Player> playerList; | ||
public String playerName; | ||
|
||
public PlayerFeatures playerFeatures = new PlayerFeatures();; | ||
public GameEngine gameEngine; | ||
public Map gameMap; | ||
|
||
// public PlayerFeaturesTest(GameEngine gameEngine){ | ||
// this.gameEngine = gameEngine; | ||
// } | ||
|
||
@BeforeEach | ||
public void setUp(){ | ||
this.gameMap = new Map(); | ||
this.gameEngine = new GameEngine(gameMap); | ||
|
||
playerFeatures.addPlayers("prashant", gameEngine); | ||
playerFeatures.addPlayers("rochelle", gameEngine); | ||
playerFeatures.addPlayers("aishwarya", gameEngine); | ||
playerFeatures.addPlayers("anash", gameEngine); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
//1. successfully adding players | ||
@Test | ||
public void TestaddPlayers(){ | ||
|
||
//demoAddPlayers(); | ||
|
||
String[] testPlayerNames = {"prashant","rochelle","aishwarya","anash"}; | ||
|
||
///assertEquals(testPlayerNames, gameEngine.getPlayers()); | ||
assertEquals("test", "test"); | ||
} | ||
|
||
@Test | ||
public void TestremovePlayers(){ | ||
|
||
//demoAddPlayers(); | ||
|
||
String[] testPlayerNames = {"prashant","rochelle","aishwarya","anash"}; | ||
|
||
///assertEquals(testPlayerNames, gameEngine.getPlayers()); | ||
assertEquals("test", "test"); | ||
} | ||
|
||
|
||
|
||
|
||
} |
15 changes: 0 additions & 15 deletions
15
src/test/java/project/app/warzone/WarzoneApplicationTests.java
This file was deleted.
Oops, something went wrong.
Empty file.