Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect 4: minimax algorith not working #10

Open
FlyingWolFox opened this issue Nov 30, 2019 · 3 comments
Open

Connect 4: minimax algorith not working #10

FlyingWolFox opened this issue Nov 30, 2019 · 3 comments
Assignees
Labels
AI Issue related to AI bug Something isn't working Connect 4 Issue related to Connect 4
Milestone

Comments

@FlyingWolFox
Copy link
Owner

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

  • Game started
  • I type 1 (botton line first column is my play)
  • After the minimaxPlay, the botton row is all set to 1
    and the minimax play above mine
    Why? it isn't undoing moves?
@FlyingWolFox FlyingWolFox added AI Issue related to AI bug Something isn't working Connect 4 Issue related to Connect 4 labels Nov 30, 2019
@FlyingWolFox FlyingWolFox changed the title Connect 4: The grid when minimaxPlay executes is ultra modified with the botton row Connect 4: The grid when minimaxPlay executes is modified with the botton row Nov 30, 2019
@FlyingWolFox FlyingWolFox added this to Issues in Class Projects Nov 30, 2019
@FlyingWolFox FlyingWolFox self-assigned this Nov 30, 2019
@FlyingWolFox
Copy link
Owner Author

AI doens't play correctly. Whyyyyyy

@FlyingWolFox FlyingWolFox changed the title Connect 4: The grid when minimaxPlay executes is modified with the botton row Connect 4: minimax algorith not working Nov 30, 2019
@FlyingWolFox
Copy link
Owner Author

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
Copy link
Owner Author

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

@FlyingWolFox FlyingWolFox added this to the AI fixing milestone Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Issue related to AI bug Something isn't working Connect 4 Issue related to Connect 4
Projects
Class Projects
  
Issues
Development

No branches or pull requests

1 participant