Click here to Skip to main content
12,352,739 members (65,948 online)

Visual Basic

 
Questionparent/child bindingsource save new fails Pin
PrissySC8-Dec-12 11:03
memberPrissySC8-Dec-12 11:03 
AnswerRe: parent/child bindingsource save new fails Pin
Eddy Vluggen11-Dec-12 2:21
memberEddy Vluggen11-Dec-12 2:21 
GeneralRe: parent/child bindingsource save new fails Pin
PrissySC26-Dec-12 2:47
memberPrissySC26-Dec-12 2:47 
Questionread mail from yahoo using yahoo api in vb.net Pin
puvanar7-Dec-12 23:01
memberpuvanar7-Dec-12 23:01 
AnswerRe: read mail from yahoo using yahoo api in vb.net Pin
Eddy Vluggen9-Dec-12 23:14
memberEddy Vluggen9-Dec-12 23:14 
QuestionMissing Toolbar Pin
No-e6-Dec-12 6:09
memberNo-e6-Dec-12 6:09 
AnswerRe: Missing Toolbar Pin
Peter_in_27806-Dec-12 13:08
memberPeter_in_27806-Dec-12 13:08 
AnswerRe: Missing Toolbar Pin
Eddy Vluggen6-Dec-12 14:23
memberEddy Vluggen6-Dec-12 14:23 
QuestionHow to insert xml to dataset.xsd using vb.net? Pin
Akbarblack5-Dec-12 19:20
memberAkbarblack5-Dec-12 19:20 
QuestionDrawing an image onto a form Pin
tuffhamster2-Dec-12 8:13
membertuffhamster2-Dec-12 8:13 
AnswerRe: Drawing an image onto a form Pin
Eddy Vluggen3-Dec-12 0:53
memberEddy Vluggen3-Dec-12 0:53 
Questionprogramming thesis VB.net Pin
enzomatriz30-Nov-12 14:48
memberenzomatriz30-Nov-12 14:48 
AnswerRe: programming thesis VB.net Pin
Dave Kreskowiak1-Dec-12 3:17
mvpDave Kreskowiak1-Dec-12 3:17 
AnswerRe: programming thesis VB.net Pin
Zaf Khan1-Dec-12 10:01
memberZaf Khan1-Dec-12 10:01 
Hello Enzomatriz,

It looks like a game of checkers?
And you say your code to take one chip works?

Ok so as I see it maybe you can place the (YOUR CODE) code block which takes the oppositions chips in a LOOP where, after taking one chip you see if there are other chips to take (as partof the same same move using the same peice/chip/counter that you use to make the initial move and if not another then obviously let the otherplayer have his/her turn.

So to explain roughly you would end up with....
PSEUDO CODE
===========
 
Start game
  Player 1 turn (your code)
    My_Turn_Complete = False
    My_Turn_Partial = False
    Do
      'The next line looks for pieces that can be taken by your Piece
      If I can take opposition pieces Then
        Take oppostion peice
        YOUR CODE FROM HERE
        'i have started a move which may let me take take more pieces
        My_Turn_Partial = True 
      ElseIf My_Turn_Partial = true Then
        'I took opposition peice and no more can be taken (so my turn is finished now)
        My_Turn_Complete = True
      Else
        'I could not take any opposition peices 
        'and My_Turn_Partial was false so i will defend my lines
        YOUR CODE HERE (to defend your lines NOT take oppososiotn peices
        My_Turn_Complete = True
      End IF
    Loop until My_Turn_Complete
  Player 2 turn
    Let player 2 make his/her move
Loop until end of game 


There is a bit more than above obviosuly,
because you cannot use a different piece/chip/counter once you have started a move,
so you need to check if its the same piece that allows you continue.
but i think there is enough above to give you an idea
QuestionTAPI3 Call Id ?? Pin
trashambishion30-Nov-12 11:20
membertrashambishion30-Nov-12 11:20 
AnswerRe: TAPI3 Call Id ?? Pin
Eddy Vluggen30-Nov-12 23:36
memberEddy Vluggen30-Nov-12 23:36 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion4-Dec-12 9:30
membertrashambishion4-Dec-12 9:30 
GeneralRe: TAPI3 Call Id ?? Pin
Eddy Vluggen4-Dec-12 10:12
memberEddy Vluggen4-Dec-12 10:12 
GeneralRe: TAPI3 Call Id ?? Pin
trashambishion6-Dec-12 12:19
membertrashambishion6-Dec-12 12:19 
QuestionLoad pdf into picturebox binding to dataset Pin
waner michaud30-Nov-12 9:10
memberwaner michaud30-Nov-12 9:10 
AnswerRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak30-Nov-12 12:43
mvpDave Kreskowiak30-Nov-12 12:43 
GeneralRe: Load pdf into picturebox binding to dataset Pin
waner michaud4-Dec-12 9:13
memberwaner michaud4-Dec-12 9:13 
GeneralRe: Load pdf into picturebox binding to dataset Pin
Dave Kreskowiak4-Dec-12 12:31
mvpDave Kreskowiak4-Dec-12 12:31 
QuestionSaving a form and its contents as an image Pin
tuffhamster30-Nov-12 4:37
membertuffhamster30-Nov-12 4:37 
AnswerRe: Saving a form and its contents as an image Pin
Eddy Vluggen30-Nov-12 23:41
memberEddy Vluggen30-Nov-12 23:41 
GeneralRe: Saving a form and its contents as an image Pin
tuffhamster1-Dec-12 3:18
membertuffhamster1-Dec-12 3:18 
GeneralRe: Saving a form and its contents as an image Pin
Eddy Vluggen1-Dec-12 4:04
memberEddy Vluggen1-Dec-12 4:04 
QuestionActivex can't create object error in VB6.0 Pin
Pradeep Londhe29-Nov-12 22:49
memberPradeep Londhe29-Nov-12 22:49 
AnswerRe: Activex can't create object error in VB6.0 Pin
Deepak Shitole14-Dec-12 21:25
memberDeepak Shitole14-Dec-12 21:25 
QuestionActivex can't create object error in VB6.0 Pin
Pradeep Londhe29-Nov-12 22:49
memberPradeep Londhe29-Nov-12 22:49 
AnswerRe: Activex can't create object error in VB6.0 Pin
Simon_Whale29-Nov-12 22:53
memberSimon_Whale29-Nov-12 22:53 
Questionhow to give Chinese characters sa in put in a Text box in vb.net Pin
ramesh.mandapelly29-Nov-12 22:03
memberramesh.mandapelly29-Nov-12 22:03 
AnswerRe: how to give Chinese characters sa in put in a Text box in vb.net Pin
Bernhard Hiller29-Nov-12 22:11
memberBernhard Hiller29-Nov-12 22:11 
QuestionHow to use c++ class into vba? Pin
gui.cmsilva29-Nov-12 17:16
membergui.cmsilva29-Nov-12 17:16 
QuestionHow Bind Multiple Columns under Same Label and store in database(VB 2010) Pin
charuwaka29-Nov-12 5:06
membercharuwaka29-Nov-12 5:06 
QuestionHow to make Login Page For a Windows Application Form(VB 2010) Pin
charuwaka29-Nov-12 3:41
membercharuwaka29-Nov-12 3:41 
AnswerRe: How to make Login Page For a Windows Application Form(VB 2010) Pin
Zaf Khan1-Dec-12 8:09
memberZaf Khan1-Dec-12 8:09 
QuestionVB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 2:17
membermebjen29-Nov-12 2:17 
AnswerRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 3:55
mvpDave Kreskowiak29-Nov-12 3:55 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 4:29
membermebjen29-Nov-12 4:29 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 10:36
mvpDave Kreskowiak29-Nov-12 10:36 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
mebjen29-Nov-12 10:57
membermebjen29-Nov-12 10:57 
GeneralRe: VB.NET / APPLICATION SETTINGS Pin
Dave Kreskowiak29-Nov-12 15:50
mvpDave Kreskowiak29-Nov-12 15:50 
QuestionMouse Down Event and Flag setting Pin
big_col28-Nov-12 19:53
memberbig_col28-Nov-12 19:53 
AnswerRe: Mouse Down Event and Flag setting Pin
Simon_Whale28-Nov-12 22:46
memberSimon_Whale28-Nov-12 22:46 
GeneralRe: Mouse Down Event and Flag setting Pin
big_col29-Nov-12 2:09
memberbig_col29-Nov-12 2:09 
GeneralRe: Mouse Down Event and Flag setting Pin
Simon_Whale29-Nov-12 3:06
memberSimon_Whale29-Nov-12 3:06 
AnswerRe: Mouse Down Event and Flag setting Pin
big_col29-Nov-12 20:19
memberbig_col29-Nov-12 20:19 
AnswerRe: Mouse Down Event and Flag setting Pin
Alan N29-Nov-12 3:09
memberAlan N29-Nov-12 3:09 
Questionvb6 to .net Pin
dvdljns28-Nov-12 7:42
memberdvdljns28-Nov-12 7:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 27 Jun 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid