Skip to content

Commit 6283258

Browse files
authored
Merge pull request #96 from ian-mackenzie/master
fixed stateActions
2 parents 35a84f2 + b230aed commit 6283258

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/ai/qlearn/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ Will use `.qualityMap`.
6464

6565

6666
```js
67-
const actionName = decide({intelligence, stateAction, actionNames});
67+
const actionName = decide({intelligence, stateActions, actionNames});
6868
```
6969

7070
Alternatively use partial random decide. It is the same function, except it randomly decides 20% of the time.
7171

7272
```js
7373
import { partialRandomDecide } from "qlearn/source/partialRandomDecide.js";
7474

75-
const actionName = partialRandomDecide(intelligence, stateAction, actionNames);
75+
const actionName = partialRandomDecide(intelligence, stateActions, actionNames);
7676
```
7777

7878
### `learn()`

0 commit comments

Comments
 (0)