Hellpp!!

This is a discussion on Hellpp!! within the C Programming forums, part of the General Programming Boards category; I am trying to work on an assignment for C Prog Class. I need help with writing a program for ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Hellpp!!

    I am trying to work on an assignment for C Prog Class. I need help with writing a program for a chess game. Thank You

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Hello, Mr. Vauge, welcome to our forums. Since you didn't make an attempt at this program and didn't even specify how you need help with the program, I guess the only way I could think of helping is to support you.

    So... "Wooo!!! Go real01!!!! You write that chess program!!! YAY!!!!!" *does a backflip*

    We're not here to write your assignments for you, so don't even think about posting again without a decent attempt at this program. There is no way they asked you to write a chess program without teaching you something.

    Also... I wasn't gonna click on this thread, but luckily you added two 'p's and two exclaimation points to your thread title, which really attracted my attention.
    Last edited by SlyMaelstrom; 12-01-2005 at 11:47 AM.
    Sent from my iPadŽ

  3. #3
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    Next time give a descriptive title also

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,764
    > I need help with writing a program for a chess game.
    How about the usual tic-tac-toe for the beginner?
    I suppose you could just download and hand in GNU Chess

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Haha... I love that advice.

    Download someone elses source code and hand it in. A suitably shameful method for a shameful post.

    Though, you have to worry, Salem. He might actually try that.
    Sent from my iPadŽ

  6. #6
    Registered User KidA's Avatar
    Join Date
    Nov 2005
    Location
    Ohio, USA
    Posts
    26
    Dude, I hate seeing you get flamed, but seriously (!!) - that's all the detail you're going to provide?!

    Can you give us some more clues, please? GUI or command-line, at least?

    Creating a chess program is pretty complex - have you taken an AI course yet?
    "So I was sitting in my cubicle today, and I realized, ever since I started working, every single day of my life has been worse than the day before it. So that means that every single day that you see me, that's on the worst day of my life" - Peter Gibbons

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,075
    Heh, I didn't even consider a single player chess program. I was thinking two player. AI (good AI) is something way down the line.

    Now I don't know if you actually have that much programming experience, but by posting such a vague question, we can only assume that you know nothing about programming. What's to make us think more than that?
    Sent from my iPadŽ

  8. #8
    Registered User KidA's Avatar
    Join Date
    Nov 2005
    Location
    Ohio, USA
    Posts
    26
    Just the logic required to determine the checkmate condition or to validate legal moves is pretty advanced for a "C Prog Class"...
    "So I was sitting in my cubicle today, and I realized, ever since I started working, every single day of my life has been worse than the day before it. So that means that every single day that you see me, that's on the worst day of my life" - Peter Gibbons

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,764
    It's a fairly interesting problem (for a newbie) just to make the pieces move in the correct way (just the rules).

    I suppose "pick any valid random move" might provide some illusion, but it would be pretty easy to beat.

    To encode any sense of strategy requires a shed-load of experience in programming, AI, chess, ....

  10. #10
    Registered User fischerandom's Avatar
    Join Date
    Aug 2005
    Location
    Stockholm
    Posts
    71
    Hello! I have been working on my own Chess program since 1989 and now I am working on a Fischerandom Chess program.

    Read this http://www.gamedev.net/reference/pro...atures/chess1/
    I think it can be a good start to read some old theory, and then if you are really serious about it one day, then you will probably come up with your own ideas and theory about how to make the program play better. There is people that have spent some 20 years with their Chess programs, those that are trying to be serious about it, so this is a task you can work on your whole life because of the nature of Chess itself.
    I suggest you look at the source code of the chess program Crafty, written by Professor Hyatt. This program once run on the super computer Cray and was the best chess program in the world in 1980 I think. Here is his home page: http://www.cis.uab.edu/info/faculty/hyatt/hyatt.html
    and on that page you can find a link to his ftp site with source code.

    Good luck!
    Last edited by fischerandom; 12-02-2005 at 04:04 AM.
    Bobby Fischer Live Radio Interviews http://home.att.ne.jp/moon/fischer/

  11. #11
    Registered User
    Join Date
    Nov 2005
    Posts
    3
    Hi guys. I really need your help, I struggling to pass this C programming course. I have this project which is %40 of my grade. Can someone please help, I know this is really lame but I can't do it on my own.
    "Write a chess program that plays against a human player. The use gets to choose if he/she wants to play with white or black piece. The input to the program will be from A2,A3 for example indicating that price at A2 is to be move to A3. The computer has to choose the best possile move during its turn and play it. The computer prints out its moves in the same format as above. "

    Thank alot for helping me! I know some of you have good hearts out there.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21