-
Notifications
You must be signed in to change notification settings - Fork 48
Running & Testing Level Generators
Raluca D. Gaina edited this page Feb 12, 2018
·
1 revision
The instructions here describe the steps needed to run and test level generators that you have created.
In the file src/Test.java
, comment out any code blocks related to running instances of the game. At the very least, you should be commenting out the following line:
// 1. This starts a game, in a level, played by a human.
// ArcadeMachine.playOneGame(game, level1, recordActionsFile, seed); // Make sure this line is commented out.
In the same file src/Test.java
, locate the following code block and make sure it is uncommented (i.e., the code will be run.)
//5. This starts a game, in a generated level created by a specific level generator
if(ArcadeMachine.generateOneLevel(game, geneticGenerator, recordLevelFile)){
ArcadeMachine.playOneGeneratedLevel(game, recordActionsFile, recordLevelFile, seed);
}
Replace the variable geneticGenerator
with any of the following:
randomLevelGenerator
geneticGenerator
constructiveLevelGenerator
-
GVG Framework
- Tracks Description
- Code Structure
- Creating Controllers
- Creating Multi Player Controllers
- Creating Level Generators
- Running & Testing Level Generators
- Creating Rule Generators
- Running & Testing Rule Generators
-
Forward Model and State Observation
- Advancing and copying the state
- Advancing and copying the state (2 Player)
- Querying the state of the game
- Querying the state of the game (2 Player)
- Information about the state of the Avatar
- Information about the state of the Avatar (2 Player)
- Information about events happened in the game
- Information about other sprites in the game
- Game Description Class
- Constraints
- Game Analyzer Class
- Level Analyzer Class
- Sprite Level Description Class
- Sprite, Termination, and Interaction Data Class
- Level Mapping Class
- Competition Specifications
- VGDL Language