# You have no debugging code in your program - I'm guessing you're just assuming the program is playing correctly?
I only commented about the debugging again because there is no debugging in your code. If there had been debugging and it didn't spot any issues then you need to improve how your debugging skills before progressing.
I simply get frustrated pointing out the same issues in your code each time and seeing very little effort on your part to fix anything. In fact many of the issues
I pointed out on the 5 April in this thread are still issues in your code. There is also no obvious attempt at debugging in your code and I feel that even a minimum amount would highlight where your program has gone wrong.
I think I'll just leave you in Fred's capable hands.
Data driving your code means controlling the action of your program through data rather than through hundreds of if statements. In this particular case you have loads of lines of code that check for lines of 3 in each direction and then again for each different position a hole can be found in - in your case half the checks are missing so the code would be twice as long if it was complete. Better would be to have a small loop for each of the different directions and simply count the pieces from each square and out in each direction. If there's 3 of your pieces and a gap on that line then you get the bonus score.
You should also read up on how to debug code - the general idea is to print out debugging info that helps you work out what's wrong. You won't learn much by dumping your program on a forum and asking others to debug your code for you
and you certainly won't get much respect if you then point out your helpers mistakes
An added benefit of data driving the above code would be a much smaller amount of code which would then be easier to debug.
I was intending on matching your program against mine for a few games and seeing how they faired but your current interface needs a fair bit of work and I'd suggest the following at the very least:
# Only allow legal moves to play
# Allow the user to take moves back
# Indicate graphically where the computers move was
# Allow the user to change the level or depth of search
# There is a text box at the bottom which seems to do nothing
# I'd include a random element which to make it a bit less predictable - your's opens in the centre every time
# It should definitely auto play
I'd include a random element which to make it a bit less predictable - your's opens in the centre every time
# It should definitely auto play
# There is a text box at the bottom which seems to do nothing
I assume this must be because more analysis is done of each board position when scoring.