Track Of The Best Scores From Game And Update?

Oct 29, 2010

I am creating a came in Visual Basic Express 2008.It is like MineSweeper but different.

I want to keep track of the best scores from my game and update it from time to time with newest best score.

My game is on 4 forms (Easy, Medium, Hard and Expert Levels).I've created a 5th form (NewGameDataSet.xsd) to hold a datatable called GameTable with several variables (columns in it).

On my Easy Game Form i've declared a variable to access it:But I'm cannot seem to connect, access, display any data from my other 4 forms After declaring the dataset below - I run stuck.Dim EasyGameTable As NewGameDataSet

View 5 Replies


ADVERTISEMENT

Display The Game Scores On And Another Form?

Mar 14, 2010

I'm doing a game. I have a form I want to display the game scores on and another form I have that calculates the scores. How do I make variables work from the first form on the second?

Lets just call one form frmStats and the other frmMain, do you get what I mean?

View 2 Replies

Game Programming :: Sorting High Scores?

Sep 10, 2009

I am Writing a Program in Visual Basic 2008 for my High Schools Advanced Higher Coursework Project... The Game its self runs perfectly and i can display the highscores. i just need some help showing 10 hi-scorers and in ascending order.Currently i am using this code for viewing them.

Code:
Private Sub HiScores_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim TmpHiScore As String 'Temporarly stores the data in file "HiScores.lol".
Dim intTempo As Integer = 1 'Stores the length of variable TmpHiScore.

[code]....

The hiscores them selfs are stored in a personalised text document and they are all on the one line. the format of this is NAME:SCORE,NAME:SCORE,NAME:SCORE and so on!

View 3 Replies

Game Programming :: Alogrithm - Attempting To Get High Scores Into The Correct Order

Sep 16, 2009

I am attempting to get hiscores into the correct order but.. I am having troble with some of it.. I have this for my sort alogrithm

Code:

For i = 0 To Howmany
For j = i + 1 To 9
If ArrScore(i) < ArrScore(j) Then
temp = ArrScore(i)

[CODE]...

The hiscores text file looks like this:

Code:

Stuart:120,LoL:192,Computer:112,LoL:113,

The immediate window looks like this when its run.

Code:
0 1 , Stuart , 120
0 2 , LoL , 192
1 2 , 120 , 120
2 3 , Computer , 112
2 4 , LoL , 113
3 4 , 112 , 112

View 3 Replies

Game Programming :: Pig Dice Game - When Program Runs - Never Goes To Computer's Turn And Does Not Update Users Score Either

Apr 18, 2012

On programming assignment without having any real experience in vb. I guess I don't understand subroutines that well. When the program runs it never goes to the computer's turn and does not update the users score either. This assignment is already in but would like to know what is going wrong. Using VB 2010, and this is windows application.

Code:
Public Class Form1
Dim Myturn As Integer
Dim Computerturn As Integer

[CODE]...

View 6 Replies

Basketball Game Monitor - Update The Database With The Info Put In The Datagrid View

Apr 6, 2010

I have this program im making it is supposed to be a basketball game monitor. The user enters two teams and the 12 players on each team then it has you pick the 5 active players and takes you to the run form where you can start the game once started you can add things like fouls and baskets made and attempted if a player gets 5 fouls or you hit stop clock you change which players are active and its supposed to update the database through the dataset and dataadapter but it doesnt seem to update the database with the info put in the datagrid view.

Here is the code of the run form i will also attach source in zip file if needed to point out mess ups

Update: When you hit resume game after change of players is when it puts zero on everyone again.

Basketball-RealTime-Monitor.zip (322.22K)
Number of downloads: 74

Imports System.Data

[CODE]...

View 3 Replies

Caculate The Scores?

Dec 9, 2009

I am trying to get this code to count the scores which are the same and tell how many students had the same score. I can get it to add 1 to it but I can not get it to tell how many students had the same score.

Private Sub displayButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles displayButton.Click
Dim scores() As Integer = {88, 72, 99, 20, 66, 95, 99, 100, 72, 88, _

[code].....

View 3 Replies

How To Increment Scores

Apr 10, 2011

I want it to increment by 1.I have this code from net but I found hard to understand the first line :

If Decimal.TryParse(TextBox1.Text, userAnswer) Then
If answer = userAnswer Then
score += 1
TextBox2.Text = score

[code]....

View 7 Replies

Sum Of All Scores Goes To The TxtTotal?

Apr 28, 2009

I am completely new to VB ( and frustrated) and I need help with my code below What I am telling VB to do is to get the number in the txtScore, store it in an array ( no clue how to do this)Sum of all scores goes to the txtTotal. Then I need vb to count how many are stored in the array after that get the average by accessing the txtTotal divide by the txtScoreCt and show it on my txtAverage.

Dim Scores(100) As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code]...

View 1 Replies

Using Arrays To Scores?

Mar 14, 2011

I am trying today to write a code that enters all the scores I enter in a textbox(txtscore). I think I almost have it but it will not work properly for me. Her is the the sub I am using to list this code. the array is called arrScore.

Private Sub btnEnterScore_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterScore.Click
Dim score As Integer = 0 'counting
'check for valid input

[code]....

View 3 Replies

Listbox, How To Get Grade Scores Up

Mar 10, 2010

Heres my code:

Dim num1 As Integer
num1 = Val(InputBox("Subject Name:"))

[code].....

View 1 Replies

Live Scores In XML Feeds?

Feb 21, 2011

im developing an vb.net application that displays live scores for soccer. Is it a must that i must get the live score from the xml feed like looping through the "nodes" to get what i want to display on vb.net form? is it more customizable with xml? Somehow i saw some website provide the web link to add to site, is the link can be used in my form in order to serve my purpose?

View 4 Replies

Checkdraw Wont Add Scores To Labels?

Jun 21, 2010

I dont quite understand why this wont work i was hoping someone could help, I have got a noughts and crosses game and its all finished appart from the checkdraw sub routine i forgott to write in, so I wrote it out as below:[code..]

Now ScoreX and ScoreO are two variables declaired at form level, I use a very simaler routine for CheckWin and that works a treat. My problem is that when a draw is detected the message box comes up ok but no scores are added to the label control.

View 2 Replies

Create A High Scores Board?

Aug 20, 2011

I am trying to create a high scores board - currently i was experimenting with just typing a number into a textbox and having it automatically order the numbers (in labels) from largest to smallest however i cannot get them all to work. either just the first and second (label) works or the second and third display the same number or the second decreases in value even though it shouldn't[code]...

View 7 Replies

Datagridviews - Sort The Scores By Greatest Value To Least Value

Mar 12, 2011

I have a datagridview with two columns; one named Names the other named Scores. This is my code so far Dim hScore As String() = New String() {strName, lblPercent.Text}

[Code]....

What I want it to do is sort the scores by greatest value to least value, but the problem I'm having is that the scores are stored as strings so they are being read and sorted from left to right. My question is, how do I store the scores in a numeric array and place them in the same row as the name, but in the second column? The names and scores only need to be stored as long as the program is running so I don't want to add anything to the registry or create new files to store them.

View 2 Replies

Get A Text Box To Display The Number Of Scores?

Nov 14, 2011

I know this is very basic stuff dealing with arrays, I have been messing this for a while and I'm not getting anywhere.I have a file with a list of 20 number 0-100. I am trying to get a text box to display the number of scores above average when a button is clicked.Using the same file I also need a list box to display the number of A's, B's, C's, D's, and F's, when another button is clicked.

View 10 Replies

Save Scores In A Label To A Database?

Jul 3, 2010

I'm making a Pong game and currently when the game ends the scores are show in a lable and a message box pops up saying which of the two players won.

However the problem i am having is i want it so that the player who won has their score saved to a database so i need to know how to get the score from the Lable to save to the database but then also have a way possibly a message box ? where the player can input the desired username. so the database would have two collums username and score where score is updated automaticaly and the username is entered by the player.

View 1 Replies

Storing High Scores Online

May 6, 2012

I'm working on a video game in VB .NET and I was wondering if there is any way to store its high scores online.If there is any way to do this, that would be great, but otherwise, I'd like to know what would be the best method of locally storing high scores on a single computer.

View 1 Replies

Test Scores / Have An Average Score?

Dec 6, 2009

I have made it so my code will print out the average score of all the test as one. but for each student i need to have an average score.

Public Class frmMain
Structure TestScores
Public decTest1 As Decimal
Public decTest2 As Decimal

[code].....

View 5 Replies

Write A Program That Will Allow Input Of Three Test Scores

Nov 25, 2010

I am working on an assignment for my Programming Logic and Design class. I also noticed a couple other similar posts but after going through them I still have an issue. I was suppose to write a program that will allow input of three test scores, average them then display a letter grade in a box. At this point the only thing that is being displayed is "F". [code]

View 3 Replies

Letter Grade Based On Test Scores?

Nov 19, 2010

I need someone with patience and can go through a solution with me from the Clearly Visual Basic book. I'm good with computers and can usually learn things relatively fast on my own time and in my own way, but I'm going to school for computer programming and, with certain things, I learn better with things explained to me rather than reading from a book. If someone has the time to go over this solution I'm doing and explain it to me in a way I'd have a better chance of understanding, I'd be truly grateful. I need a tutor, for lack of a better word. The lab I'm doing is from the Clearly Visual Basic book and the instructions are:

Code an application that displays a letter grade based on the averages of three test scores. Code the application using a function to determine and return the letter grade. If the average is at least 90, the grade is A. If the average is at least 80 but less than 90, the grade is B. If the average is at least 70 but less than 80 the grade is C. If the average is at least 60 but less than 70, the grade is D. If the average is below 60, the grade is F.

[Code]...

View 17 Replies

ListView With Names - Sorting Awarded Scores?

Jan 18, 2011

I have a routine whereby kids do some tests and are awarded scores. These scores are put in a ListView with their names. The snag arises when sorting! It's ok in single figures but at 10 and over it is no go! It is only in the first column that the scores are put. I believe the method is in collections and compares - am I right? So how can this be simply done? In all the bits of code I've managed to get hold of I get lots of words underlined in blue and have no idea what the explanations mean. Some such things are, "IComparer".

View 3 Replies

Program That Fills A 2D Array With Quiz Scores?

Jan 27, 2011

I want to write a quick program that fills a 2D array with quiz scores. Consider there is 5 Students and each have completed 3 Quizes. I want the program to display a class average as well as a student average.

I've gotten as far as a nested for/next loop but I am stumbling over the language for accumulating and displaying the average.[code]...

View 2 Replies

Prompt User For # Of Quiz Scores To Input?

Mar 1, 2011

Am to prompt user for # of quiz scores to input, should then create an array large enough to hold those number of scores, set up loop that allows user to enter approp. # of scores, all scores will be integers, each score should be placed in the array.

[Code]...

View 1 Replies

Return Indexes Of Two Or More Highest And Lowest Scores?

Sep 4, 2009

Public Scores(19) As Decimal

Now This Array is populated with decimal values and i just want to get the index values of the highest and lowest scores.i.e. if the [[scores(3) = 90]] and [[scores(7) = 90]] are equal and highest scores, i want 3 and 7 as integers in return..and same for the lowest scores..I retrieved data from a text file and stored it in Classes.. now i want to relate the above Array and these Classes..

Dim Student1 As New Student

There are total 20 of these classes.. Student2.vName, Student3,vName.. etc etc

Student1.vName = SplitterArray(0)
Student1.vID = SplitterArray(1)
Student1.Score1 = SplitterArray(2)

[code]....

For example, After i get the highest score indexes from scores(19) array i would like to get the name of the related person from Student*.vName Class (If i get 3 and 7 index i the related names would be Student4.vName and Student7.vName consequently)?

View 14 Replies

Game Programming :: Make A Game In VB In Which Character Can Move Around, Jump, And Kill Things?

Apr 2, 2008

im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?

View 4 Replies

VS 2010 Game Multi-Client - Program That Enables A Game To Have More Than One Instance Running

Nov 18, 2011

I want to make a program that enables a game to have more than one instance running, where it would otherwise be unable to be done. How should I go about this? A sandbox? Hack?

View 3 Replies

Game Programming :: Adding Score To Rock Paper Scissor Game?

Oct 3, 2011

Im new to VB. how do I get to add the score.my code is

[Code]...

View 6 Replies

Repeat Cards Showing Up In Game And Win Evaluating Code For Poker Game?

Jul 2, 2009

I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them. Granted, the code is very simplistic, but functional for a new programmer like myself. I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it. With that being said, here are a few problems and questions that I have.

1. How come when all 12 cards are dealt out I have some cards repeating in the game? For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.

2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game. When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes: I have the deal down the way I want it. It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.

3. I know this is my next step so I want to post it with the code I currently have. I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand. For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc. ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.

Here is the code that I currently have. I'm using visual basic.

Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)

[code]....

View 1 Replies

Compute The Standard Deviation From SCORES.TEXT - Data(1)?

Apr 5, 2012

I can't figure out how to compute the standard deviation from SCORES.TEXT, data(1) Here is my code so far:

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved