Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Checkers game, need assistence.
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
william 01




PostPosted: Mon Jun 06, 2011 8:47 am   Post subject: Checkers game, need assistence.

The other one was getting me no where so lets start from scratch.

What I need help is the click for the square the piece is moving to. I know that I need to program one click to select the piece, then another click for where the piece is moving, and have the piece on the new square. I will put an attachment with what I have.

this is where I am trying to get the piece to move for now.
VisualBASIC:

Private Sub cmdA2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdA2.Click
        If Colour = 1 Then
            If gameboard(0, 7) = 1 Then
                If Not Firstclick Then
                    Firstclick = True
                    fromRow = 0
                    fromCol = 7
                End If
            ElseIf gameboard(0, 7) = 0 Then

            End If
        ElseIf Colour = 2 Then

        End If
    End Sub


If any one could help me, or help me work this out I would be grateful.
(just so you know I am not asking you to do this for me, just in case you were thinking that.)



Checkers Game.zip
 Description:
This contains all of my code and pictures

Download
 Filename:  Checkers Game.zip
 Filesize:  101.89 KB
 Downloaded:  319 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: