Connect Four with Smart AI Player
Try to beat the AI! This is a version of Connect Four with a smart AI player that makes intelligent moves.
The AI evaluates each possible move and picks what it thinks is the best one, resulting in a hard (but not impossible!) to beat adversary.
https://repl.it/@WyattGeorge/ConnectFour
-Update: Changed characters to be clearer, console is now cleared after each move
-Update: Fixed a bug that prevented the AI from picking a column if it was guaranteed to lose
can you add color
I still love this game though.
I beat this AI over and over. I have not lost once to it.
try to make it harder.
woo i won! great game
i really liked it there is one little thing that i didn't like tho, at one point in one of the rounds it said over the game board " there is no escape now" i would have taken a screen shoot if i knew how. please reply as soon as you can and explain to me if you meant to do that or not
This file cannot be displayed: https://storage.googleapis.com/replit/images/1530987184467_14c573473cec68582d925f1d80a2ce97.pn
I was going to finally win :(
How are you supposed to win, the AI plays perfectly with the power of machine comparison
Really great job!! I have won only once and the code is amazing!
nice work.
I think 0 and O are little confusing, X and O would have been better
And a clear console before each print would also be nice.
I agree with
@vishnunathcr it might be because I played this on an android screen but it's next to impossible to see the difference in shape. O and o would even be better.I lost every round...
This is awesome dude. Well done!
How long did it take you to make this if I may ask?
Awesome!
This is fantastic! I like the fact that the AI is legit.
Wow, this is pretty good!
what AI algorithm does it use