Generic Game Engine based on Drools
Latest commit b38bab5 Oct 11, 2016 @antmendoza committed with change the engine's behaviour to 'equality'

Simple Drools Game Engine for creating Escape The Room (point and click) style games.

CI here:


You wake up in a room, you don't know where you are, you need to: ESCAPE THE ROOM!

alt tag

alt tag

This example was created originally for the conference JBCNConf (June - 2016)


  • JDK 8
  • Maven 3.2.3 +
  • GIT
  • IDE with Maven plugin, and you need to know how to use it ;)


  • Fork this repository (with the fork button, you need to be signed in
  • clone your forked repository: git clone
  • cd drools-game-engine/
  • mvn clean install -DskipTests (if you run it with tests it will fail on purpose, the rules are missing, you need to write them)

Update your fork from this "blessed" repository


Write the missing rules to make all the test green again! There are three incomplete DRL files with their corresponding tests:


Write more rules, improve the existing ones, create more complex scenarios. Some ideas:

  • Create sub goals and expose the compleated subgoals via a query
  • Generalize the concept of a House to be a building with multiple rooms in multiple floors
  • Add the time variable, for example, create a hint mechanism that kicks in after a period of inactivity
  • Expose the GameSession interface using Rest Services and wildfly swarm
  • Provide your own implementation of GameSession, without using the rule engine, so you can compare both impls
  • Add Enemies and rules to avoid entering rooms with enemies

Finally send your Pull Request! or contact me via twitter if you have questions @salaboy