6 Replies - 2573 Views - Last Post: 23 August 2011 - 05:33 PM Rate Topic: -----

#1 programmer.MeroSpike  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 11

Chess Game 2d c#

Posted 21 August 2011 - 11:15 PM

I want a help to how to use Mini-Max Algorithm in chess game programming ,I don't understand it ,and what is the best way to make this game ,i mean if i make a method for movement and call it for each click .....etc is better or what ..please help me .
Is This A Good Question/Topic? 0
  • +

Replies To: Chess Game 2d c#

#2 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 996
  • View blog
  • Posts: 2,403
  • Joined: 04-October 09

Re: Chess Game 2d c#

Posted 22 August 2011 - 06:28 AM

First you will need a function that takes a board position and evaluates how 'good' this position is for one of the sides. Then you will search the move tree, assuming that one side moves to maximize this value, and the other side moves to minimize this value. You can read more about it here.
Was This Post Helpful? 1
  • +
  • -

#3 programmer.MeroSpike  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 11

Re: Chess Game 2d c#

Posted 22 August 2011 - 06:39 PM

View PostMomerath, on 22 August 2011 - 06:28 AM, said:

First you will need a function that takes a board position and evaluates how 'good' this position is for one of the sides. Then you will search the move tree, assuming that one side moves to maximize this value, and the other side moves to minimize this value. You can read more about it here.

thank you for your help but i can't understand something is that true that I'll make a method for the user and another for for computer then I'll call them in the successful method in a loop i mean method for user turn then method for the other user turn in a loop ???....
Was This Post Helpful? 0
  • +
  • -

#4 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 996
  • View blog
  • Posts: 2,403
  • Joined: 04-October 09

Re: Chess Game 2d c#

Posted 22 August 2011 - 08:34 PM

No, the same method should be used. Generally, a value of zero means no one has an advantage, positive numbers one side, negative numbers the other.
Was This Post Helpful? 0
  • +
  • -

#5 programmer.MeroSpike  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 11

Re: Chess Game 2d c#

Posted 23 August 2011 - 05:01 PM

View PostMomerath, on 22 August 2011 - 08:34 PM, said:

No, the same method should be used. Generally, a value of zero means no one has an advantage, positive numbers one side, negative numbers the other.

got it thank you a lot & I'll ask you if there is a problem can i take your mail ??

This post has been edited by programmer.MeroSpike: 23 August 2011 - 05:02 PM

Was This Post Helpful? 0
  • +
  • -

#6 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4314
  • View blog
  • Posts: 7,475
  • Joined: 08-June 10

Re: Chess Game 2d c#

Posted 23 August 2011 - 05:29 PM

All help needs to remain on the public forum. Private help goes against the principles of a forum.
Was This Post Helpful? 0
  • +
  • -

#7 programmer.MeroSpike  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 21-August 11

Re: Chess Game 2d c#

Posted 23 August 2011 - 05:33 PM

I swear I don't mean that but to make a friendship with other countries i hope that
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1