Skip to content

Generate a test level and forward model

Raluca D. Gaina edited this page Feb 12, 2018 · 2 revisions

GameDescription class allows level generator to test their levels. It transforms an input string of characters to a level and support you with a State Observation and Forward Model. The input characters should be the registered in the game level mapping, otherwise you need to supply your own level mapping hashmap (for easy constructing your hashmap check LevelMapping class). The following table describes these functions in details:

GameDescription functions Description
StateObservation testLevel(String level) This function takes a level string and transform it using either the main level mapping hashmap or the supplied hashmap to construct a StateObservation object. The StateObservation object can be used to simulate the level and evaluate it.
StateObservation testLevel(String level, HashMap\> charMapping)

Table of Contents:

Clone this wiki locally