Compare commits

...

2 Commits

Author SHA1 Message Date
69d302d38a
fix: use constant to manage episode number 2023-05-30 03:13:08 +08:00
023bbf7315
fix: Makefile dependence 2023-05-30 03:12:41 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
all: a.out
a.out: main.c
a.out: main.c enviroment.c enviroment.h q-learning.c q-learning.h constant.h
gcc main.c enviroment.c q-learning.c -lm
run:
./a.out

2
main.c
View File

@ -14,6 +14,6 @@ int main(){
init_table(&table[0][0]);
run(&table[0][0], board, false, 10000, false);
run(&table[0][0], board, true, 1000000, false);
run(&table[0][0], board, true, EPISODE_NUM, false);
run(&table[0][0], board, false, 10000, false);
}