Home > marl > world > gridworld > gridworld_reset.m

gridworld_reset

PURPOSE ^

Resets the gridworld to its initial state and reports this state

SYNOPSIS ^

function [gw, stateviews] = gridworld_reset(gw, restype)

DESCRIPTION ^

Resets the gridworld to its initial state and reports this state
  [GW, STATEVIEWS] = GRIDWORLD_RESET(GW, RESTYPE)
  Resets the gridworld to its initial state, after a trial has ended.
  Returns the state of the world as viewed by all the agents within.
  All agents will see the true state of the gridworld.

  Parameters:
   GW          - the gridworld
   RESTYPE     - the reset type (optional). Currently ignored.
  Returns:
   GW          - the reset gridworld
   STATEVIEWS  - the state views, one agent view per column


  See also gridworld, gridworld_advance

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005