WIP: add full game test base
This commit is contained in:
parent
ae9f5902e1
commit
cce1622a45
@ -161,6 +161,30 @@ class GameLogicTest {
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void testGame() {
|
||||
GameInstance game = new GameInstance(partyConfig, characterConfig, scenarioConfig);
|
||||
|
||||
game.addObserver(new EventObserver() {
|
||||
@Override
|
||||
protected void handle(Event[] events) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
ArrayList<Integer> selected1 = new ArrayList<>();
|
||||
for(int i = 0; i < 6; i++) {
|
||||
selected1.add(i);
|
||||
}
|
||||
ArrayList<Integer> selected2 = new ArrayList<>();
|
||||
for(int i = 6; i < 12; i++) {
|
||||
selected2.add(i);
|
||||
}
|
||||
|
||||
game.startGame(selected1, selected2);
|
||||
}
|
||||
|
||||
|
||||
// @Provide("gamestate")
|
||||
// Arbitrary<GameState> gamestate() {
|
||||
// var states = Arbitraries.integers()
|
||||
|
Loading…
Reference in New Issue
Block a user