MJeremy2017 / reinforcement-learning-implementation

Reinforcement Learning examples implementation and explanation
MIT License
320 stars 245 forks source link

Support variable BOARD_ROWS & BOARD_COLS #8

Open speedybits opened 3 years ago

speedybits commented 3 years ago

Modified code to support variable BOARD_ROWS and BOARD_COLS. If BOARD_ROWS!=BOARD_COLS then a win is from one side of the rectangle to the other. To get the AI to work, had to add 'savePolicy()' to the end of 'play'.