/** * This method is used to execute Q learning * @param filePath the file to be loaded * @return strategy for Q learning */ public static string Execute(SokobanBusinessLogic bl) { Learning ql = new Learning(); ql.Init(bl); ql.Learn(); return(ql.GetStrategyFromTable()); }
/** * This method is to do initialization for Q learning * @param filePath the file to be loaded */ public void Init(SokobanBusinessLogic bl) { initState = bl.Init(); state = bl.Init(); // initialize Q table table = new Dictionary <Node, Double>(); }
public ViewModel(Grid gameGrid) { FillBL = new FillBusinessLogic(this, gameGrid); SokobanBL = new SokobanBusinessLogic(this); }