chess game in C#

chess game in C#

Page 1 of 1

8 Replies - 37340 Views - Last Post: 16 April 2010 - 10:33 AM Rate Topic: -----

#1 Guest_Salman*


Reputation:

chess game in C#

Posted 16 April 2010 - 04:36 AM

step by step guide to a simple chess game in C# or any tutorials which shows you from A to Z, how to make chess game in C#

Thanks
Is This A Good Question/Topic? 2

Replies To: chess game in C#

#2 b.ihde  Icon User is offline

  • D.I.C for life
  • member icon

Reputation: 45
  • View blog
  • Posts: 1,070
  • Joined: 29-September 08

Re: chess game in C#

Posted 16 April 2010 - 04:39 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 janne_panne  Icon User is offline

  • WinRT Dev
  • member icon

Reputation: 428
  • View blog
  • Posts: 1,047
  • Joined: 09-June 09

Re: chess game in C#

Posted 16 April 2010 - 04:42 AM

What is a simple chess game :o

Well, it's probably very simple and easy to do if you don't have any AI. There you just need some images and some rules where those images can move and if one image comes into the same square with current image, remove the current image as it is being eaten alive.

Use google to search some open source chess games made with C# and download them and look how they are done. I doubt there is a tutorial which shows every line of code and explains what they do because there will be quite a lot of those lines in a chess game.
Was This Post Helpful? 0
  • +
  • -

#4 Guest_Salman*


Reputation:

Re: chess game in C#

Posted 16 April 2010 - 04:45 AM

well thats a problem that I dont even know how to start... if I just get a help line how to start or any website which tell me how to make and every thing ... I will be really happy with it.
Was This Post Helpful? 0

#5 Guest_Salman*


Reputation:

Re: chess game in C#

Posted 16 April 2010 - 04:49 AM

View Postjanne_panne, on 16 April 2010 - 03:42 AM, said:

What is a simple chess game :o

Well, it's probably very simple and easy to do if you don't have any AI. There you just need some images and some rules where those images can move and if one image comes into the same square with current image, remove the current image as it is being eaten alive.

Use google to search some open source chess games made with C# and download them and look how they are done. I doubt there is a tutorial which shows every line of code and explains what they do because there will be quite a lot of those lines in a chess game.


Thanks for your quick reply , I have downloaded some open source chess game for C# but they are too complicated and not coming in to my mind. As I have Brain Disability and my english is not good aswell. Thats why I want some website or tutorial which tell me how to do add images, jump over images etc...
Was This Post Helpful? 0

#6 janne_panne  Icon User is offline

  • WinRT Dev
  • member icon

Reputation: 428
  • View blog
  • Posts: 1,047
  • Joined: 09-June 09

Re: chess game in C#

Posted 16 April 2010 - 04:51 AM

Check this link: http://www.csharphel...hess-game-in-c/
There is a zip file there which could help (I didn't check it)

And next you should google game programming tutorials, not just chess ones. If you know how to make a basic game like pong or tetris, it isn't that hard to move up to a chess game. In chess game only the AI part is difficult.

There are lots of pong tutorials available. Probably here in DIC too.

edit:
You could also start with console chess game. The board would be:
char[] arr = new char[8,8]; (because chess boards are 8x8 squares)
Then user inputs where he wants to move, lika A1 to B2 and your programs check which character is in square A1 and whether or not it can move to B2.
That might be a good approach at first.

This post has been edited by janne_panne: 16 April 2010 - 04:59 AM

Was This Post Helpful? 0
  • +
  • -

#7 Guest_Salman*


Reputation:

Re: chess game in C#

Posted 16 April 2010 - 05:06 AM

View Postjanne_panne, on 16 April 2010 - 03:51 AM, said:

Check this link: http://www.csharphel...hess-game-in-c/
There is a zip file there which could help (I didn't check it)

And next you should google game programming tutorials, not just chess ones. If you know how to make a basic game like pong or tetris, it isn't that hard to move up to a chess game. In chess game only the AI part is difficult.

There are lots of pong tutorials available. Probably here in DIC too.

edit:
You could also start with console chess game. The board would be:
char[] arr = new char[8,8]; (because chess boards are 8x8 squares)
Then user inputs where he wants to move, lika A1 to B2 and your programs check which character is in square A1 and whether or not it can move to B2.
That might be a good approach at first.


what would be the code of jumping over the players...
Thanks
Was This Post Helpful? 0

#8 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6245
  • View blog
  • Posts: 24,013
  • Joined: 23-August 08

Re: chess game in C#

Posted 16 April 2010 - 05:18 AM

Quote

what would be the code of jumping over the players...

Quote

simple chess game


A good place to start would be to learn the rules of chess!
Was This Post Helpful? 0
  • +
  • -

#9 MentalFloss  Icon User is offline

  • .
  • member icon

Reputation: 577
  • View blog
  • Posts: 1,500
  • Joined: 02-September 09

Re: chess game in C#

Posted 16 April 2010 - 10:33 AM

Quote

Check this link: http://www.csharphel...hess-game-in-c/
There is a zip file there which could help (I didn't check it)


Holy hell... yes absolutely download this. This is great code and I haven't even looked at it all yet.

Quote

what would be the code of jumping over the players...

Quote

A good place to start would be to learn the rules of chess!


Knights jump over pieces. To the point of the rules though, no empty square takes a piece except the pawn's en passant.

EDIT: Just remembered a castle has to actually be totally clear. My bad.

This post has been edited by MentalFloss: 16 April 2010 - 10:34 AM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1