Computer Science Canada

Turing game code

Author:  theinquisitor [ Thu Jun 14, 2012 7:24 pm ]
Post subject:  Turing game code

I'm trying to make a game called GOMOKU, or five in a row

I already made most of the code, including player turns and placing pieces.



The problem is that I can't make the code to determine which player is the winner - to be the first who have 5 pieces in a row.


Thx, just an idea would be helpful.

Author:  Tony [ Thu Jun 14, 2012 8:00 pm ]
Post subject:  RE:Turing game code

Hint -- if a player has won on this current turn, then the winning line contains the piece that has just been placed.


: