![JAR search and dependency download from the Maven repository](/logo.png)
org.ggp.base.player.gamer.statemachine.sample.SampleNoopGamer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alloy-ggp-base Show documentation
Show all versions of alloy-ggp-base Show documentation
A modified version of the GGP-Base library for Alloy.
The newest version!
package org.ggp.base.player.gamer.statemachine.sample;
import org.ggp.base.apps.player.detail.DetailPanel;
import org.ggp.base.apps.player.detail.EmptyDetailPanel;
import org.ggp.base.util.gdl.grammar.GdlPool;
import org.ggp.base.util.statemachine.Move;
import org.ggp.base.util.statemachine.exceptions.GoalDefinitionException;
import org.ggp.base.util.statemachine.exceptions.MoveDefinitionException;
import org.ggp.base.util.statemachine.exceptions.TransitionDefinitionException;
/**
* SampleNoopGamer is a minimal gamer which always plays NOOP regardless
* of which moves are actually legal in the current state of the game.
*/
public final class SampleNoopGamer extends SampleGamer
{
@Override
public Move stateMachineSelectMove(long timeout) throws TransitionDefinitionException, MoveDefinitionException, GoalDefinitionException
{
return new Move(GdlPool.getConstant("NOOP"));
}
@Override
public DetailPanel getDetailPanel() {
return new EmptyDetailPanel();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy