FlyingWolFox / Class-Projects-1

Games that professor asked us to do. This pack has Tica Tac Toe, Connect 4, Hangman, Simon and Battleship
MIT License
1 stars 0 forks source link

Connect 4: minimax algorith not working #10

Open FlyingWolFox opened 4 years ago

FlyingWolFox commented 4 years ago

After testing single player mode, discovered that the minimaxPlay function sets the botton line to 1 . Happens like:

FlyingWolFox commented 4 years ago

AI doens't play correctly. Whyyyyyy

FlyingWolFox commented 4 years ago

Now the minimaxPlay uses a copy of the grid. This fixed, partially. The AI just play in one column in serie, not matering what I play. Here we go...

FlyingWolFox commented 4 years ago

AI disabled for now. Let's see if I can fix it