Exforsys

Online Training

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 ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2007, 08:02 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-06-2008, 04:07 PM
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 04:17 PM
Member
 
Join Date: May 2006
Posts: 45
norman is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-06-2008, 04:21 PM
Member
 
Join Date: Apr 2006
Posts: 65
priyaraji is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Final year project in bangalore Vasundhra T Freshers Jobs 0 07-27-2006 07:57 AM
MSc level Project Ideas archana.maurya Project Requests 1 06-22-2006 04:38 AM
Software Project Planning rjames Software Testing 1 06-01-2006 05:32 AM
Please help needed ssofttech Immigration Help 4 05-09-2005 02:30 AM
Microsoft provides Project work for Students sanereddy Project Requests 0 09-20-2004 10:12 PM


All times are GMT -4. The time now is 05:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.