I was inspired by LPMC's tic tac toe game and created a connect four game.
repo
It's not really connected to the bot yet. But you can play against the machine by runing irb and
ruby
require './connect_four.rb'
cf = ConnectFour.new
cf.next_step([column number indexed from zero of the move you want to make])
It is slow as hell. It does a depth first search of all possible boards 4 moves away and does a board evaluation. that's 7^4 or 2401 board evaluations and it doesn't do a good job either. lots of room for improvement.
I was inspired by LPMC's tic tac toe game and created a connect four game.
repo
It's not really connected to the bot yet. But you can play against the machine by runing irb and
rubyrequire './connect_four.rb'
cf = ConnectFour.new
cf.next_step([column number indexed from zero of the move you want to make])