Q-learning-in-C/q-learning.h
snsd0805 c3a0335ff1
Merge: replace 'tic-tac-toe' with '4 in a row'
'tic-tac-toe' version is located on the other branch.
2023-06-02 23:48:55 +08:00

8 lines
336 B
C

#include "hash-table.h"
short float_argmax(float *arr, short length);
short bot_choose_action(struct Node **map, short *board, char *state);
short opponent_random_action(short *board);
float get_estimate_reward(struct Node **map, short *board, char *state);
void run(struct Node **map, short *board, bool train, int times, bool plot);