Get exact 5 stones in a row to win. Play this game against a human opponent here: http://www.yourturnmyturn.com.