Computer Science Canada Chess Game, need help with secondary click |
Author: | william 01 [ Wed May 11, 2011 1:49 pm ] |
Post subject: | Chess Game, need help with secondary click |
As the subject states I'm making a chess game and need help with the secondary click. I'm not working on the code yet but, can some one post a template or somthing, so I know how to do it when i come to it. |
Author: | Tony [ Wed May 11, 2011 1:53 pm ] |
Post subject: | RE:Chess Game, need help with secondary click |
What do you mean by "secondary click", and what kind of help do you need with it? |
Author: | william 01 [ Wed May 11, 2011 2:03 pm ] |
Post subject: | Re: Chess Game, need help with secondary click |
I mean the click for the square the peice is moving to, I have no idea how to code it, can any one help me with this? |
Author: | william 01 [ Tue May 17, 2011 10:33 am ] |
Post subject: | Re: Chess Game, need help with secondary click |
does this mean that no one can help me? |
Author: | Tony [ Tue May 17, 2011 12:19 pm ] |
Post subject: | RE:Chess Game, need help with secondary click |
It's probably just a mix of a vagueness of the question and that very few people here use VB. A question to you -- how is the second click different from the first click (selecting where the piece is moving from). |
Author: | z_cross_fire [ Wed May 18, 2011 3:11 am ] |
Post subject: | RE:Chess Game, need help with secondary click |
If I am getting your question right; Try using a boolean? To check if it is the second or the first click... An alternate way could be to use an integer, with odd/even denoting first/second click.... |
Author: | mirhagk [ Wed May 18, 2011 4:43 pm ] |
Post subject: | RE:Chess Game, need help with secondary click |
Is it a 1 person or 2 person game? Because a 1 person game is a HUGE challenge. |
Author: | Zren [ Wed May 18, 2011 6:16 pm ] | ||
Post subject: | RE:Chess Game, need help with secondary click | ||
That said mirhagk's right. Chess is a massive endevor. Try starting with checkers before trying a game with 6 different movement types (vs checker's 2) (and then there's castling and en passent as well). Both have kinging/queening too, but meh. |
Author: | william 01 [ Thu Jun 02, 2011 1:56 pm ] | ||
Post subject: | Re: Chess Game, need help with secondary click | ||
Ok. I took your advice and changed to a checkers game. but now I am stuck. this the code I've got so far to get the peice to move:
colour = 1 is my boolean for the player gameboard(0,7) = 1 is checking if the square is ocupied and by whom but I don't know where to go from here. can any one be of assistance? |
Author: | william 01 [ Fri Jun 03, 2011 8:13 am ] | ||
Post subject: | Re: RE:Chess Game, need help with secondary click | ||
Zren @ Wed May 18, 2011 wrote:
That said mirhagk's right. Chess is a massive endevor. Try starting with checkers before trying a game with 6 different movement types (vs checker's 2) (and then there's castling and en passent as well). Both have kinging/queening too, but meh. this is for turring not vb so it wont help me. should have noticed sooner. |
Author: | Tony [ Fri Jun 03, 2011 11:41 am ] |
Post subject: | Re: RE:Chess Game, need help with secondary click |
william 01 @ Fri Jun 03, 2011 8:13 am wrote: this is for turring not vb so it wont help me.
The exact syntax/implementation might be different, but ideas are easily transferable between languages. |