Skip to content

Connect Four game #18

@colwem

Description

@colwem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions