-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I was inspired by LPMC's tic tac toe game and created a connect four game.
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.
Metadata
Metadata
Assignees
Labels
No labels