View Single Post
Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: Chess...confusing problem =(

 
0
  #7
Jan 8th, 2009
Originally Posted by u8sand View Post
Well before you do anything, might wana fix a lil problem w/ ur game.
Your pon can move 2 spaces even when its not its first move : /
I recomend saying if the pon is not in the start y axis, then it can only move 1 space, else it can move 2. Because pons cant move backwards, this will assure it works. But i havent looked at code first so i cant solve your problem yet. I will check.


also i moved the king allot and dident get any access violation. But i will see
hmmm yeah something must be horribly wrong with that entire project, because the pawn movement is fine >.< . Each piece has a bHasMoved member that represents whether or not it has moved, and the pawns use that to prevent them from moving more than 2 spaces after their first move.

i will redo the whole thing right now since the one i uploaded seems to be totally fried.
Reply With Quote