Exforsys
+ Reply to Thread
Results 1 to 4 of 4

Ideas Needed for the Project

This is a discussion on Ideas Needed for the Project within the C and C++ forums, part of the Programming Talk category; I am trying to implement a chess program using C programming languages and graphics in C language. I am planning ...

  1. #1
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122

    Ideas Needed for the Project

    I am trying to implement a chess program using C programming languages and graphics in C language. I am planning to write separate function f handling movements of king, queen, pawn and each of every coin. Is there any other performance improvement way for handling movement of coins in chess? Kindly suggest your opinion on this project.


  2. #2
    Allan is offline Member Array
    Join Date
    May 2006
    Answers
    40
    Some inputs and tips for your chess program are:
    * You must first decide on the depth of moves for your chess program. Say if you plan to build your program to handle efficiently 8 depth moves make it handle as 4 half-moves for the white and 4 half-moves for the black pieces.
    * If you know C++ or VC++ you can try building in this as it would ease your process and reduce your code writing.


  3. #3
    norman is offline Member Array
    Join Date
    May 2006
    Answers
    43
    The main logic for your chess program is you must make the system scans the chessboard displayed on screen and locate all current position of coins before making the movement. It must try making internally all possible moves it can make and come if the optimized result for final movement.


  4. #4
    priyaraji is offline Member Array
    Join Date
    Apr 2006
    Answers
    52
    Some thoughts as inputs for your chess program from me are you can have separate function for handling each of the functionality. That is you can have a separate function for each of these
    * scanning chess board
    * Deciding all possible moves from current coin positions and come to a optimized move
    * Check the validity of computer move


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...