Developing A Minesweeper Flags Game And The Multiplayer Version Is All Setup?
May 17, 2012
So I'm developing a minesweeper flags game and the multiplayer version is all set up, but the single player version is still under developement. It's important to refer that I'm using a DataGridView, and I'm applying r = tab1.CurrentCell.RowIndex + 1 and c = tab1.CurrentCell.ColumnIndex + 1 to see where the player clicks. What I want to do is to make the AI click any random cell when it's turn comes, but how do I do this.
View 1 Replies
ADVERTISEMENT
Jun 19, 2012
I am trying to make a Chess multiplayer game in Visual Basic. Its a two player which will be played in a normal way and not even over LAN. So far, I am done designing the board.
My logic is: First, on clicking any square, the click event handler will check whether a piece resides on that square. If not, then it checks if a piece is to be moved to that square. If both are negative, then it does nothing.
Now, the problem with this is, how do I code the click events? Also, I have represented the board using a 2dimensional array. But how do I update the positions after every move? And how do I check whether legal move is being executed? One more thing I want to add is whenever a piece is clicked, the possible legal squares should be highlighted.
For this, what I did was, for every click event on any square it checked if there was a piece. If there was a piece, then it highlighted all possible moves for that piece using If-Else-If logic, but it turned out to be too cumbersome and too long. And another problem which arose was, how do I know that if the user clicks an empty square to move the piece there?
View 2 Replies
Jan 10, 2010
i want you to send for me minesweeper game program in c++ please explain it step by step that how you made it.my e-mail is fof_gof@yahoo.com.please please please send me.ok?i am not very familiar with programming in c++.
View 2 Replies
Jan 9, 2011
I'm trying to create a multiplayer game, but i don't know how to communicate between my programs, what I'm trying to send is some text, which my program can understand it. I searched for it and for making a chat application but found no working results...
View 10 Replies
Jul 17, 2011
I was looking at this example: Basic TCP Communication I was really amazed by this piece of code however it only works in WLAN. I was thinking if its possible to make the same program over internet not the same router but which can be connected to two different countries or any other place except the same network?
Actually I have created a very simple game called whack a mole. In which buttons appear and the user has to click it before it disappears. however I am trying to make it multiplayer over the internet even if i have to create a server from my PC. I dont know if its even possible. The other player should also get the same screen as the user who hosted the game just like real time.
View 4 Replies
Aug 2, 2011
I also set certain commandline prompts for another that I named DebugWithoutLogon. The app is then set up to bypass logon and set certain test flags so during debugging I don't have to login and do those things every time.
View 1 Replies
Jun 2, 2011
I am making a program for Microsoft Flight Simulator X, and When you are in Multiplayer in most games there is a Chat room, or Chat Box. Do you think that there is any way I can reach maybe an API or possibly monitor the Screen so If someone types !Help in the chat box my bot would Respond like "Software by (whoever) other commands" stuff like that. But I cant seem to find any info about API's in the Microsoft Flight Simulator X SDK about Multiplayer Chatbox or any multiplayer functions in that matter.
View 2 Replies
Jun 3, 2010
I am developing a very simple game in visual basic 2008: a roulette. And yet I found problems in develop it.My question is this: I have an image ,containing all the roulette's numbers and I want to associate the spaces of the different numbers to different buttons, so that which time I click in a certain number on the image it dos some action.How can make this association of the different spaces in the image and different buttons?
View 3 Replies
Mar 11, 2010
Using Vb net (2005) in Win Forms, in my app. I have many Win Forms one off them is "SetupOption" this need to be shown at least once at the first time I run the app and never ever after unless I need to change some settings,. then my question: How to setup flags to check if "SetupOption" has been shown, if it was shown then do not show it again unless ask to, through a menu click. p
View 3 Replies
Mar 17, 2012
've just bought book about DirectX, so I'm gonna try to do few games later, I've got several ppl that are good in 3D Modeling so we want to release our games later, which of the Visual Studio version is for us? I know that Express is just for education and you can't release applications created with it, so which one Visual Studio is for INDIE Developers? So we can release our games without worrying about getting sued by Microsoft for using Visual Studio that can't be used for such things (like with express
View 3 Replies
Jul 6, 2010
i hav developed a active x control which uses timer control and Windows Common Dialog Box. it runs normally in a browser. but when i try to make it a ".ocx" the following error is displayed.Unable to set up the version compatible component.
View 3 Replies
Mar 30, 2010
I made a little program for Hobby-use, and I like it to be installed by an installer. There's an installer program (Windows Installer 3.1?) deliverd with Visual Studio 2008 but that does not do the job completely. I want a coupling to be made between a program and a the users startup directory.If Windows Installer 3.1 can do that after all, can somebody explain how? If not, is there a free or low cost, simple to use (no scripting) installer program what will do the job? At last: Is there a version of .NET Framework 3.5 that does not require downloading during the user's setup procedure?
View 5 Replies
Apr 30, 2012
I currently have my resources (images) in C:inetpubwwwrootimages I also have the images in the same location on my production server. How can I set it up so that I don't have to constantly sync up the folders? Seems like an easy thing but I'm not sure..
View 3 Replies
Mar 11, 2010
I'm trying to make a light version of a Blackjack game. The rules I need to use are as follows:
Ace = 1
Normal Cards = 2-10
Color Cards (king, queen, etc,) = 11
The dealer can keep hitting until it reaches 17 or under 21, he must always stay once it hits 17 or over (without busting obviously).
I know the ace normally should be 1 or 11 normally but I don't want to complicate things, I want to get the main thing of the program working first.
Public Class frmMain
'declaration to help generate number
Dim RandomClass As New Random()
[code]....
View 10 Replies
Mar 31, 2009
How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?
And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?
BTW I am using VB if that makes any difference.
View 1 Replies
Mar 31, 2010
i have a question regarding how to developed a multiplayer games using VB. i am a student and beginner on VB world.i managed to create a simple Sudoku game using VB knowledge from the internet and some books.I am fan of Sudoku games published in newspaper everyday.but now i really interested on how to develop the multi-player version using the same coding. is it possible?
i tried to write a script on developed tic-tac-toe for multi-player based from a book using VB6 for an example but got many errors. how to develop a simple multiplayer for Sudoku? i'm using VB 2008 Express Edition.
View 1 Replies
Jul 13, 2009
I am trying to make a two player game.Each player is able to move left and right, aim up and down, jump, and shoot.On some occasions when a number of keys are being pressed at once, some other keys wont register.For example, you can hold a key down to keep moving left, keep holding a key down to aim up(changing the angle), keep holding a key down to keep jumping, keep holding a key down to keep shooting. and there are TWO players at the same time:if both players are shooting, only one can aim down(press key to change angle). but it is fine if both trying to aim up ? Can the keyboard not handle too many keys at once?
View 1 Replies
Mar 8, 2009
This is the code i have and what i put !): around the parts and no this is not homework, i found this on the internet and i'm having some trouble with is.
[Code]...
View 2 Replies
Jun 3, 2012
I'm trying to implement a boolean flag into a button so that when the button is clicked the flag will equal to true. After that i need to run an if statement stating that if the button is clicked then move/relocate the button to the corner of the screen. I tried setting my flag as true and using an IF statement but it didnt work. i get a syntax error stating "Operator '=' is not defined for types 'System.Windows.Forms.Button' and 'Boolean'
here's my code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1 = flag1 Then
Button1.Location = New Point(651, 511)
End If
End Sub
View 14 Replies
Apr 30, 2012
So I'm developing a minesweeper game and im assigning the mines, but i'm unable to create a algorithm to stop a mine to go to a place where there's already a mine, here's what i have so far:
Public Sub initflags()
Dim line, column As Integer
For line = 0 To 9
[code].....
View 2 Replies
Dec 8, 2011
I've started making a Minesweeper game in vb.net using a dynamically created grid of buttons, which are stored in a 2D array. I have another 2D array (Boolean), that keeps track of whether a certain position is covered or uncovered. And I have an 'update grid' method that can be ran whenever, to update the grid, so that all that should be uncovered is uncovered on the screen.
[Code]...
View 1 Replies
Jan 31, 2009
I'm trying to Read Minesweeper's Process Memory, At a certain Address and i want to write to that address then read it again and check to see if the writing is successful.
I've been trying to use WriteProcessMemory and ReadProcessMemory, But it seems that I don't know how to make WriteProcess write properly, and I have almost know clue as to how Readprocessmemory works. I just tried reading the exact same things as i was writing.
What I decided on designing was too make a Program that will Hook the program in Textbox1.text (winmine) and then write the NOP's from textbox2.text (Whatever that is) to the ADDRESS specifiyed in the Textbox3.text. Then textbox4.text is just byte's written(I still have yet to figure out what that is in WriteProcess).
So far, It successfully hooks the Application, But it does not write it, and Yes, I d have the proper address, and I'm writing the proper NOP's.
This is my
Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Object, ByVal lpBuffer As Object, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
[code]....
View 5 Replies
Feb 3, 2010
Now days it is done in Resources.Designer.vb we have there following lines:
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
[code]...
View 3 Replies
Dec 11, 2009
I am trying to speed up the process of changing flags within an INI file used for a program. Ideally i want a simple form with ON/OFF radio buttons which are specific to different options within the ini file. For example, if i wanted to turn Printing off in the ini file, i could select OFF for which this will edit the ini file and change the setting "Printer=0"
Code:
Dim file As System.IO.File
Dim reader As System.IO.StreamReader
Dim line As String
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
[Code] .....
View 4 Replies
Jan 10, 2010
I have fully programmed my Minesweeper; however, I was having difficulty trying to get the same result as in the original minesweeper for when a user clicks and moves the mouse around while still right clicking. You may notice that in the original Minesweeper, when a user does as explained, the tiles that the user goes to will then look blank. If the user releases the mouse, the current tile they hovered to will become the clicked tile. In my Minesweeper, the tile I click on is the only one that will look blank, and when I hover over to the next tiles, they do not get blank like the first one I clicked on. Then when I release my mouse button when over to another tile, the very first tile I clicked on is the one that gets uncovered.
Here is what I already have used. I have the MouseDown event which checks to see if the game has been started to begin the game timer. It also has some color properties for tiles when I click on them and I set a boolean to true or false depending on the user left or right click. I have the MouseUp event which looks at the boolean to determin what the user had clicked on the mouse so I know if I flag or simply click to uncover. Then I have the MouseEnter and MouseLeave which are needed to yield the proper glow I want for the tiles. What should I do to get the same results as in the original Minesweeper with the MouseDown and MouseEnter into other tiles? I tried many other things such as MouseEnter, MouseMove and MouseHover, but all seem to yield the same crummy result as what I already have.
[Code]....
View 1 Replies
Oct 17, 2011
I'm beginning the process of trying to recreate minesweeper. See the attached picture of the version on my computer. My guess would be all the click-able locations are images. But notice the beveled borders around all the components, and how they separate the different section of the game. How would I go about created that? And what about the digitized timer and mine counter. Are those images too? I'm fairly new to VB programming (windows programming in general).
View 4 Replies
Oct 18, 2011
I have a vb.net app that crashes after runnung for 6 hours. There is no error message. Application just stops running. No error noted in log. No flags in event logs. Is there a feature in vb.net that may cause this. Application uses excel 2003
View 3 Replies
Feb 5, 2012
how would i go about having a picture box that displays one of 4 flags based on radio button settings?
View 6 Replies
Apr 17, 2010
if I have several of these movable PictureBoxes added to a Form (Form1) and want to display a selection rectangle only on that PictureBox, that is just selected,then I think I should use a flag to mark whether a PictureBox is selected or not. The flag could be used in paint event to decide,whether the selection rectangle is to be drawn or no .To add a flag property to the new class is no problem. But how can I set the flags in all other existing instances of the class, when it is set to True in the selected PictureBox?
View 1 Replies
May 10, 2012
I want to create a real setup project for my application so when someone want to download it he can run only setup, not default setup that provide me VB . How can I do that?
View 4 Replies