Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing game code
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
theinquisitor




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: