Connection 4

Connection 4

We were given a base connect 4 program and it was required for us to implement learning ability with some extra features so the game would be challenging.

I implemented features such that the computer will not make the same mistake twice, it will recognise and block 3 of the human players counters in a column or row, it will recognise and block 2 in a row (as sometimes 3 is too late).

I did not get round to implementing 'blocking diagonals' so the game can be beaten.

Technologies used: Prolog

People involved: Graham Griffiths