-
Notifications
You must be signed in to change notification settings - Fork 48
Sample Random Rule Generator
Raluca D. Gaina edited this page Feb 12, 2018
·
1 revision
It is a naive rule generator. The main idea is to generate any random amount of interaction and termination conditions that compiles.
The interaction rules are picked in the following manner:
- Pick two random sprites found in the current level (EOS is included)
- Pick a random interaction from all the available interactions
- Pick a random increase or decrease for score
- Test if the interaction rules works:
- Yes: Add it to the previous rules
- No: Pick another random interaction from all the available interactions
- Repeat the previous step till you get a fixed number of interactions.
The termination conditions are much simpler, the system adds two termination conditions. One for winning the game and the other for losing the game. The lose condition is always fixed to when the avatar dies but the winning condition is either time based (after a fixed amount of time) or when the number of a certain sprite reach zero.
-
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