PHP Classes

Connect Four

Recommend this page to a friend!

      PHP Classes blog  >  Neural Networks in PHP  >  All threads  >  Connect Four  >  (Un) Subscribe thread alerts  
Subject:Connect Four
Author:Jeff Micheals
Date:2010-03-09 16:39:23
Update:2010-03-09 23:57:32

  1. Connect Four   Reply   Report abuse  
Picture of Jeff Micheals Jeff Micheals - 2010-03-09 18:59:27
Are you sure this works? I played connect four with the exact same winning pattern 40+ times and the network still did the exact same losing pattern each time.. a little confused at it's ability to learn.

  2. Re: Connect Four   Reply   Report abuse  
Picture of Louis Stowasser Louis Stowasser - 2010-03-09 23:57:32 - In reply to message 1 from Jeff Micheals
Yes sorry this is a known error I haven't been able to work on but will soon.

There are a few problems which I haven't been had time to work on with the online version.

Firstly, the network has to play itself for quite a few iterations to be able to get anywhere (haven't done this yet)

Secondly, the way the network learns is by replicating the winner. This means the network does not know if it made an incorrect move because I don't tell it which moves are incorrect, I only tell it which moves are optimal. And this is because I wanted to whip up a quick demonstration.

I was hoping that more people playing would cover every aspect and teach it which moves lead to a win but not enough training has occurred so far.