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

Username:   Password: 
 RegisterRegister   
 Tic-Tac-Toe
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tony




PostPosted: Thu May 03, 2012 2:38 pm   Post subject: Re: RE:Tic-Tac-Toe

Raknarg @ Thu May 03, 2012 1:43 pm wrote:
In tic tac toe, you would just go through each open space in order, and rate the move by the amount of wins.

No, since some move can guarantee a single possible win, while another move might give a potential for 2 win conditions, but only if the opponent makes a mistake.

tic-tac-toe is a solved game. For any possible board configuration, there is a known best move to make -- http://xkcd.com/832/
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Fri May 04, 2012 10:04 am   Post subject: RE:Tic-Tac-Toe

Idk, thats what my teacher did, and it seemed to work pretty well.

At least, that's what I recall he did
Amarylis




PostPosted: Fri May 04, 2012 11:17 am   Post subject: Re: RE:Tic-Tac-Toe

Tony @ Thu May 03, 2012 2:38 pm wrote:
Raknarg @ Thu May 03, 2012 1:43 pm wrote:
In tic tac toe, you would just go through each open space in order, and rate the move by the amount of wins.

No, since some move can guarantee a single possible win, while another move might give a potential for 2 win conditions, but only if the opponent makes a mistake.

tic-tac-toe is a solved game. For any possible board configuration, there is a known best move to make -- http://xkcd.com/832/


I have no clue how to implement that without having a hell of a lot more code than I do now, something that I'm not particularly wanting to do, since I've already handed it in Razz
Tony




PostPosted: Fri May 04, 2012 12:25 pm   Post subject: Re: RE:Tic-Tac-Toe

Amarylis @ Fri May 04, 2012 11:17 am wrote:
I have no clue how to implement that without having a hell of a lot more code than I do now, something that I'm not particularly wanting to do, since I've already handed it in Razz

That should be very little new code, as it's all just data.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: