コード例 #1
0
ファイル: AgentAI.cs プロジェクト: KiwiCowan/SafetyNet
    public void FindPath()
    {
        boardStateGraph = board.GetBoardGraph();
        Debug.Log(Graph.ToString(boardStateGraph));

        QLearning qLearning = new QLearning(epochs, actions, rewards, boardStateGraph, learningRate, discountFactor);

        qLearning.Train();

        solution = qLearning.GetPath();
        StartMove();
    }