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....
Player 1 turn (your code)
My_Turn_Complete = False
My_Turn_Partial = False
'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
'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
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
Hi man thx for you help i fix the problem, the end i can't see who call, jajaja..
Pls help with this problem...
I am desperate looking for someone to help me in a project that I want to perform, I have a Windows XP sp3 activated the routing and remote access service (remoteaccess) for some users will be able to connect via modem. What I need to know is if i can control and monitor the users that may be connected as well as the time they had connected them disconnect, you know of any project, bookstore, code, something for such a thing.
I load the pdf file into webbrowser control. Now i need to save into a table. the form in question already has a dataset binding into it. I neesd to take the pdf file that's showing in the webbrowser control and to be saved with every control on the form.
Here the code below that I used: Dim Response As DialogResult OpenFileDialog1.FileName = "" OpenFileDialog1.Filter = "PDF Files(*.pdf)|*.pdf|All Files(*.*)|*.*" Response = OpenFileDialog1.ShowDialog() If Response <> Windows.Forms.DialogResult.Cancel Then If OpenFileDialog1.FileName <> "" Then cmdBrowse.Navigate(OpenFileDialog1.FileName) End If End If
i have a table name ManifestTD with dataset ManifestTD_dataset with column (ID as PK, Data as Binary(MAX)
How to get this save into the table ; also be able to doubleclick to the webbrowser command to view the entire pdf document through adobe
I have a form that has various pictureboxes that are populated by the user. Once the form has all the pictureboxes full, the user needs to save the whole form and its contents as a jpg. The only problem is that the only thing that is saved is the picturebox.1.
I can see that in Case 1 section I am telling the program to save the PictureBox1 in form 2 but I want it to merge all the PictureBoxs in form 2 and save as a jpg. Can anyone tell me where I am going wrong
Dim saveFileDialog1 AsNew SaveFileDialog()
saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif"
saveFileDialog1.Title = "Save an Image File"
' If the file name is not an empty string open it for saving.
If saveFileDialog1.FileName <> ""Then' Saves the Image via a FileStream created by the OpenFile method.
Dim fs As System.IO.FileStream = CType _
' Saves the Image in the appropriate ImageFormat based upon the
' file type selected in the dialog box.
' NOTE that the FilterIndex property is one-based.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
Install a Chinese keyboard with the Language Bar of Windows. Set the focus to your text box, then select "Chinese" from the Language Bar, and type: "川宫" (don't know what it means, just typed some characters on my German keyboard with the Chinese keyboard selected in the LanguageBar...)
I developed a hotel bill In Windows form application(visual basic 2010)
i created a database with Column names
And i added this database to my form and i dragged and dropped as Details view. I arranged columns in horizontal format. Grand total button at end form. i selected all text boxes excluding grand total textbox. by holding Ctrl key i made duplicates to all text boxes in the same horizontal columns. The first text boxes are correctly working correctly.but the duplicates box values although i inserted they are not assigning to database(when i pressed save icon on top)(only first Row boxes are saved) what to do please help me. provide the code in visual basic 2010 format. if you don't understand i will mail my complete project to you please please help me
Last Visit: 31-Dec-99 19:00 Last Update: 25-Dec-14 22:59