public static void main(String[] args) throws InterruptedException  {
WumpusWorldServer ww = new WumpusWorldServer();
ww.init();
}
public void init() throws InterruptedException {
<BUG>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add( ResourceFactory.newClassPathResource( "commands.drl", getClass() ), ResourceType.DRL );</BUG>
if ( kbuilder.hasErrors() ) {
throw new RuntimeException( "failed to build:\n" + kbuilder.getErrors().toString() );
}

public static void main(String[] args) throws InterruptedException  {
WumpusWorldServer ww = new WumpusWorldServer();
ww.init();
}
public void init() throws InterruptedException {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add( ResourceFactory.newClassPathResource( "init.drl", getClass() ), ResourceType.DRL );
if ( kbuilder.hasErrors() ) {
throw new RuntimeException( "failed to build:\n" + kbuilder.getErrors().toString() );
}
kbuilder.add( ResourceFactory.newClassPathResource( "commands.drl", getClass() ), ResourceType.DRL );
if ( kbuilder.hasErrors() ) {
throw new RuntimeException( "failed to build:\n" + kbuilder.getErrors().toString() );
}
