gokultp / go-four-in-a-row

A simple command-line implementation of the game `four in the row`
MIT License
12 stars 13 forks source link

AI for game is not woking for 6X7 board #22

Open gokultp opened 6 years ago

gokultp commented 6 years ago

Is your feature request related to a problem? Please describe. AI is not working for 6X7 board (is the standard) Describe the solution you'd like update the ai package for 6X7 board

Additional context Writing a general solution will be better.

gokultp commented 6 years ago

@berto can you take a look at this issue

bertoort commented 6 years ago

After taking a quick look, it's not an issue with the AI. If you build a 6x7 board, without playing against the AI, the game doesn't work properly. I think this is an issue with the game package logic where it is not adding entries / checking for connect fours correctly.