This is a version of classic Five in a Row game. Black starts by placing one stone. White continues with two. Then black.. and so on until one player has made a line in any direction consisting of six (or more) stones. Simple.
You can snatch the source from here. There is so much stuff I still need to do here, but for now, consider this a proof of concept. And have fun!