Did it Atlast....

This is a discussion on Did it Atlast.... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; At last i have finished my 2 player chess game...... I have attached it check it out.. All the move ...

  1. #1
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683

    Did it Atlast....

    At last i have finished my 2 player chess game...... I have attached it check it out.. All the move validations,, check, check mate etc etc has been done..


    TO move a piece. first select the pawn or whatever by clicking the left mouse button on it.. To place it move the cursor on top of that block and press that right mouse button..( Please note nothing will happen if that move is not a valid one...)

    Well the only thing left is validation for stalemate and castling....

    Well here is a challenge.. let me see if anyone of you can find any validation bug or any other bug in my game...( badly need testers..)

    and also please post you coments to improve my game..

    *Runs back to program AI to make it single player...*

    To exit the game press any key ont the keyboard( use mouse to play).
    You need to extract al the files to run the game...
    Attached Files Attached Files
    Last edited by vasanth; 12-09-2002 at 11:39 AM.

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Doesn't seem to work in XP

    It starts, displays a brown text message on the screen and hangs.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Ok sorry... corrected the path problem.. i have replaced the file.. download it again.. Sorry
    Last edited by vasanth; 12-09-2002 at 11:39 AM.

  4. #4
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176
    i downloaded and started it ok, but i can't move any of the pieces.. tried them all.. i click and nothing happens.

    XP home edition

  5. #5
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    ok here is the tutorial gaian....


    White starts first remember.....

    now click on any of the white pieces you want to move(click with left ouse button and release button) now got to the block where you want to place it. and click the right mouse button......( the block you selected should be a valid block for it to move..)


    *Note to myself improve the mouse interface...*

  6. #6
    The Earth is not flat. Clyde's Avatar
    Join Date
    Mar 2002
    Posts
    1,420
    You don't seem to allow En Passent

  7. #7
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    ohh boy sombody found out........
    well i though that this move was not a good idea( my own chess ethics..).. I am not aware of it... but is En Passent a standard chess rule.. Some one please enlighten me about this...

  8. #8
    Evil Sock Puppet MadHatter's Avatar
    Join Date
    Nov 2002
    Posts
    176
    ahh, i got it.. i think you should light up possible moves for a piece, or atleast light up a piece when it's selected. i played once to try it out.. got the king cornered where he was safe at that spot, but couldn't move anywhere else, because it would put him in check, so the game didn't actually win.. just stopped on black's turn good work... i lost tho

  9. #9
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    Yes, en passent is very much a standard chess move that would need to be included (sorry! )

    A little history, to speed up the game, chess was changed to allow pawns to move two squares on their first move (they only used to be allowed one square). So that this double move wouldn't be taken advantage of by bypassing an advanced enemy pawn, en passent was also incorporated to keep the game as close to the original as possible. So in no way would it be considered a bad or unethical move, if anything the person who tries to avoid the advance pawn to begin with is the one stretching the rules!

  10. #10
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    Is en passant the move that is also known as 'castling'? Where you move your rook inside of the kings position.

  11. #11
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    No, en passent is where a player moves his pawn up two squares side by side with an enemy pawn. The opponant can if he chooses take the pawn as though it had only moved one spot - but he must do it on the very next move or else forfeit the right.

  12. #12
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Thank you for your opinion... but i would appreciate comments on the other aspects of the game as well... So that i can make it better... .. And did any one of you find any other bugs.. other then the "en passent" move which was not allowed......

  13. #13
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    I didn't see any other bugs other than the ones you mentioned. Good job!

  14. #14
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    I think you could do a little better on the color of the pieces. Even if you're limited to 16 colors some masking and shifting of those 3 bytes can still give you the best-bet for a certain color.

  15. #15
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Wrell i am thinking of giving the user the option to change colors..... And any sugestions on the mouse interface....

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scope of Pointer Variables
    By vlrk in forum C Programming
    Replies: 12
    Last Post: 03-25-2008, 06:55 AM

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