Problem Saving Pieces Movement.

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2008
Posts: 2
Reputation: dankbc1 is an unknown quantity at this point 
Solved Threads: 0
dankbc1 dankbc1 is offline Offline
Newbie Poster

Problem Saving Pieces Movement.

 
0
  #1
Nov 19th, 2008
Hey guys, I'm having a problem with my checkers program; whenever I move the piece, it redraws the whole board and basically puts the piece back into its original position. The code is attached to this post. Thank you for your help!
Attached Files
File Type: cpp Checkers.cpp (12.7 KB, 10 views)
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,055
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Problem Saving Pieces Movement.

 
1
  #2
Nov 19th, 2008
Ya think? Looking at your code, how could you expect it to do anything different? I don't see any attempt to maintain a board's state, and your program does not even deserve to be called an attempt at a checkers program; except upon the rare click, it just calls GamePaint over and over again, drawing the starting position of a checkers board.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: dankbc1 is an unknown quantity at this point 
Solved Threads: 0
dankbc1 dankbc1 is offline Offline
Newbie Poster

Re: Problem Saving Pieces Movement.

 
0
  #3
Nov 19th, 2008
Originally Posted by Rashakil Fol View Post
Ya think? Looking at your code, how could you expect it to do anything different? I don't see any attempt to maintain a board's state, and your program does not even deserve to be called an attempt at a checkers program; except upon the rare click, it just calls GamePaint over and over again, drawing the starting position of a checkers board.

Can you instead tell me how to possibly fix it?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 334 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC