style: clean useless variable

This commit is contained in:
snsd0805 2023-05-30 02:51:51 +08:00
parent 147fef527e
commit 03d28c81c9
Signed by: snsd0805
GPG Key ID: 569349933C77A854

11
main.c
View File

@ -7,15 +7,8 @@
#include "q-learning.h" #include "q-learning.h"
int main(){ int main(){
short board[9]= {0}; // tic tac toe's chessboard short board[9]= {0}; // tic tac toe's chessboard
float table[STATE_NUM][ACTION_NUM]; float table[STATE_NUM][ACTION_NUM]; // q-learning table
short available_actions[9];
short available_actions_length;
short winner;
short choice, opponent_choice;
int state, _state;
int estimate_r, estimate_r_, real_r, r, opponent_r;
struct action a;
srand(time(NULL)); srand(time(NULL));
init_table(&table[0][0]); init_table(&table[0][0]);