WIP: add full game test base

This commit is contained in:
punchready 2021-06-01 00:50:43 +02:00
parent ae9f5902e1
commit cce1622a45

View File

@ -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()