Commit ccac1475 authored by Bruno Zanuttini's avatar Bruno Zanuttini
Browse files

Merge branch 'grid-world' of https://git.unicaen.fr/bruno.mermet/mad-framework into grid-world

parents 2050a75a 81b1b235
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
package fr.greyc.mad.framework.example.gridworld;

import java.util.List;
import java.util.LinkedList;
import java.util.List;

import fr.greyc.mad.framework.model.Action;
import fr.greyc.mad.framework.model.AgentBody;
@@ -15,8 +15,14 @@ import fr.greyc.mad.framework.model.Observation;
 */
public class GridWorldAgentBody implements AgentBody {

	List<Action> actions;
	/** The list of actions of this agent. */
	private final List<Action> actions;

	/**
	 * Builds a new instance.
	 * 
	 * @param factory A factory of actions
	 */
	public GridWorldAgentBody(GridWorldActionFactory factory) {
		List<Action> list = new LinkedList<Action>();
		list.add(factory.get(this, -1, 0)); // left
+4 −0
Original line number Diff line number Diff line
/**
 * A package for a simple grid world environment, with agents able to move from squares to neighboring squares.
 * 
<<<<<<< HEAD
 * @author Bruno Zanuttini, Université de Caen Normandie, France
=======
 * @author Bruno Zanuttini
>>>>>>> 81b1b235bb180608bfdac31558e4af1a95055b18
 */
package fr.greyc.mad.framework.example.gridworld;
 No newline at end of file