Game Ranking Based On Time And Score
Oct 9, 2010
I am creating a point system for a game. What i have right now is that fastest time with highest score gets a higher ranking.
But i can't seem to create this, what i did was to sort the time first from lowest to highest. Then sorted the points from highest to lowest.
Now my problem is, when i display the results. This is what i get.
RANK TIME SCORE
1 0:56 5
2 0:60 4
3 0:37 2
[Code]....
View 2 Replies
ADVERTISEMENT
Apr 14, 2012
Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......
[Code]...
View 1 Replies
Apr 14, 2012
Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......
[Code]....
View 2 Replies
Oct 3, 2011
Im new to VB. how do I get to add the score.my code is
[Code]...
View 6 Replies
Mar 23, 2012
I fought through a good amount of this and have gotten to the point where I can sort my arrays. What I need to do now is take the following code and sort the elements in descending order instead of ascending order. I don't know how to do that with the two arguments in the code:
Dim Cols(3) As Int16
Cols(0) = ColumnNumber + 1
Cols(1) = ColumnNumber + 2
Cols(2) = ColumnNumber + 3
[Code].....
View 1 Replies
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
Jan 13, 2012
Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.
There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"
[code]......
View 6 Replies
Apr 19, 2011
I currently have a who wants to be a millionaire game that I have made in visual basic 2010. Each question is in its own form. Form1 opens at the start, and question 1 is opened by a button click on Form1. The user has to click on the picture box at the side to show the text for the question each time. If they answer incorrectly, it displays a message box, opens an input box asking for their name, and goes to the form with the high score list, Form17.
Upon opening Form17, I want the scores to load and be displayed in the list box. The high scores are saved in a text file at C: est.txt . Upon clicking menu or end, the high scores are saved to the text file.
View 2 Replies
Feb 17, 2012
I need to determine the ranking of the List items specified by one specific property of the items.
I have the following Class:
Public Class LevelA
Property items as New List(Of LevelB)
Public Class LevelB
Property factor as Double
ReadOnly Property rank as Integer
End Class
End Class
For example, let's say I have three items in the List. I have set the factor property for the first item as 5.50, the second item as 6.60 and the third item as 3.30.Now I should be able to get the rank property of each item (the highest value should be ranked as 1). Here the first item in the list should have the rank as 2, the second item as 1 and the third item as 3.
What kind of procedure is needed for the "ReadOnly Property rank as Integer" for returning such values? It should somehow be able to access the list in the parent class probably?
View 3 Replies
Dec 13, 2009
is there any way yo get the score of one player in counter strike? one of the player on the computer. not all the players. i know that when you are looking att server info, then you can see all the player and there scores. is there anyway to replicate that function?
View 14 Replies
Mar 29, 2010
I have to use an access DB as a score table and having a few problems.I have the table showing in a data grid fine what i now need to do is find a way of updating it depending on the score someone gets.anyway here is what I have so far and what I want to do is if player scores say 1000 that his/her score then will be put in that place then the others move down....
Code:
Imports System.Data.OleDb
Public Class highScores
' Full path to database must be given if not in Debug/BIN folder
[code]....
the score table opens on a new form and the score is held in a var on form 1 called lol score just a quick edit I have put 2 buttons on the form to load the data in the grid to start with but this will load automaticly and the name will be entered into either a txtbob or an inputbox?
View 1 Replies
Nov 2, 2010
To clarify - I'm building a simple game in visual basic and I'm trying to create a simple file to record and display the "Best Score" from each game. Actually there are four levels in this game (each one is on a different form) - I'm trying to save the best score from each level to display in a separate Game Stats form. Therefore I creating a datatable on one form, but then trying to get all my other forms to access it.
But now I get a new DBNull error message in part of code not of my making - NewGameDataSet.Designer.vb
Error Message = "The value for column 'BestScoreEasy' in table 'GameTable' is DBNull."
Does this mean I need another New Statement somewhere?
View 3 Replies
May 7, 2012
I am creating a type of pacman game, I have entered the code for everything else, but I am struggling with the code for the high score,[code]
View 2 Replies
Feb 12, 2011
I just finished making a Tetris game in VB.NET, and I wanted to add a high score system to the application. So, when a user completes their game, they have the option of submitting it as a high score, which will compare their score against the previous high scores, then place it accordingly. I was thinking of an XML approach of doing this, where the user's name, rank, score, level, and number of lines cleared will be stored in tags. Here is what I thought the XML might resemble:
[Code]...
So the program will have an array to store all the previous scores. It will read through the XML, and copy the the score data into this array. Then, when the time comes to submit a score, it will compare this score against those previous scores, and find the proper position for that score, and then save it into the array. At the end, it will then copy all the score data from this array to the XML, replacing the <Level>, <Lines>, and <User> tags in the process.I am however having trouble implementing this, as I have no experience with XML files and everything I've read has been very confusing.
View 2 Replies
Oct 23, 2009
What is the code for making a score on a game of rock, paper, scissors on vb2008 and how do you make sure it works?
View 1 Replies
Sep 6, 2009
I have an ASP.NET application with a SQL Server back end. I am storing all my dates in UTC format and doing the appropriate conversions to the local time zone of the browser viewing it. One of the pages asks for a start date and end date (no times).
I am taking the start date and setting the time to 00:00:00 hours (midnight) and I'm taking the End time and adding a time of 23:59:59, so that the date range covers the whole day. Now what I'm trying to do is do a SQL query to do a search for records in this date range. The problem is, the data in SQL is in UTC time and the user is typing their dates and times in their local date and times. My quickest solution was to convert the date and time to UTC, then search the records. However, by doing this, I am to believe ASP.NET converts the given time and date to UTC based on the server time zone. How can I convert a date and time to UTC time based on the time zone of the user?
View 5 Replies
May 10, 2010
I am writing a noughts and crosses game and I want to be able to keep score everytime each character wins a game, I have written a sub routine to handle this but it seems to count up in 5's and 10's??I have used a global variable like this Dim i As Integer = 1 then declaired that variable in my sub like this i += 1 (I thaught that this would just add 1 everytime X won a game)then used the variable i to add the score to the label control that keeps the score for the character X.My question is, am I using the correct syntax (+=) for the variable.
View 2 Replies
Oct 18, 2010
i am suppose to create "a windows form game called Yahtzis which uses five dice and three throws to create a score" .
The problem is that i don't even know how to start it can anyone shed some light.
View 2 Replies
Mar 25, 2010
is there a tutorial for making a Text Based Game In Visual Basic?
View 2 Replies
Jun 1, 2010
i'm creating a game for a college assignment based on Yahtzee, and so far everythings going smoothly but i've run into a hitch! Basically, after each roll of the dice i want to be able to retrieve the number of the dice wich apeared in each picture box. But how would i go around retrieving that type of data from a picturebox?
View 6 Replies
Dec 16, 2010
I am reading the memory from a game and I have managed to find the x,y,z values of the player (z is irrelevant). Now I am trying to make some sort of a waypoint system and I thought it would be best to make a small coordinate based map that will act as a birds-eye view of whats going on ingame. But I don't know where to begin creating this thing, since it needs tons of xyz values.Just throwing this in here since I've already made the thread:I also want a small circle to represent the player that will turn, facing waypoint 1 and move in a straight line towards it.
View 1 Replies
Nov 9, 2011
[code]...
Yup,not PHP but it's the same for readability)As you may imagine I want to make a simple text based rpg game, but that's not an important fact.The buttons btn1 to btn3 are already created at the designer, and there are going to be other procedures which will assign values to their text property according to the game context (main menu, combat, shopping, training, etc.) you're at.Ok, so what I want to do with that procedure I pasted is to parse the text of ANY of those buttons when I click them, and according to its value select a case which will trigger another appropriate procedure (now there are only msgboxes as placeholders for testing only).My problem is that I dont know how to refer to the originating class of the handled event! I mean, let's say I click btn2. I'll want to immediately get the text property of that button only and use it as the value for the select case tree. I suppose I need to put something at that ?I wrote there, but I don't have any idea. The first time I was so naive to put me.text in there, and of course it returned the form name. Is there's something to do this thing...? I thought at first it would be a very simple task, but I'm going nuts searching for a solution so it's like if it was not possible, but I find hard to believe that, because this would be very useful, right? By the way, what I want to achieve is not needing to make a separate procedure for each button and to avoid as well the need to move any game option to another procedure if later on I want to rearrange the menus, because I expect the game to have more than three buttons actually.
View 2 Replies
Mar 18, 2009
I am just for learning purposes trying to develop a one player text based game.
I have a rich text box (GameWindow)
I have a text box (InputWindow)
I have a button (InputButton)
and a bunch of labels that aren't really important
I have two questions first is easy probably. How do i get InputWindow to respond to me hitting enter when text is in it?
[Code]...
But if i plan to have more that is only going to increase the size and code needed and im sure there is an easier way i just don't know how to do it.
View 1 Replies
Jun 10, 2012
I often think of classes and modules as "global" variables or variables you can use any where in your solution/project. can you make global timers? I basicly want to make a farming like game but the plants will grow based on a timer. So if the player closes that form the timer needs to still tick. So can I make global timers so the timer would not have to start over if the form is closed and reopened?
View 4 Replies
Jun 29, 2011
I am trying to make a turn-based board game that will be run on multiple computers. I am writing the game logic and design in VB. I searched for a little and could not find the information I was looking for. One question I have is, will I need a server if there will only be 2 players. Also, what language should I use to write the server side code.
View 1 Replies
Jan 26, 2010
the rules are that same coloured blocks of two or more can be removed by clicking on them. blocks then slide down from above. if a column is empty columns other columns move in from the sides.when someone clicks on the green blocks in the bottom row the columns should slide in from the sides. columns to the left of the black line slide right and on the right of the black line slide left. so in this case only the two rightmost columns should slide from the right to the black line after removing the green blocks.The problem i am having is in designing a suitable algorihm to do the collapsing after the removal. my current approach is to test each column from left to right to see if it is empty. if it is empty then i slide whatever column is to the left (if left of the black line) or to the right (if to the right of the black line) over the blank column and repeat this in the direct i am sliding from
View 1 Replies
Dec 12, 2011
Well this is a re-post now as nobody replied in the gaming section, and i believe this question could go as a normal VB question, therefore I'm asking in this category instead.I have decided to pick up on programming and want to make a text based RPG Game i will "upgrade" as my programming knowledge grows.I got some ideas that i think i should use, but i want you guys' opinions on it.I assume I'll use different classes for each monster, which will have properties.Should those monsters then be inside a list of all possible monsters, or would i have a monster class which i would use and generate the enemies when needed? And would i use the same approach on items and character stats?
View 4 Replies
Oct 15, 2010
I am doing a internet cafe sweepstakes slot game in vb.net. I want to show the objects based on the payout and the prize money for paylines in the slot game. I tried using MT algorithem but it basically random number based. the final output should not be radom.
[code]...
View 1 Replies
Mar 2, 2010
Is there any way to create a ranking system in VB? I'm trying to create an organizer for my robotics team. I thought of using an array, but I don't know how to read multiple text files or change the array if one is better than the other.
View 12 Replies
Dec 7, 2010
Application: Arrays are to be used for this. When button Add Student is clicked it should add all the information for a student and when Show Student button is clicked it should prompt the user for student's last name and student's information in a message box. Class ranking list box has an enum function to it and has to be stored be show along side other answers.NOTE: FindItemIndex if from the last application I did, i am suppose to use it in this one,so you can modify it the way you want.
[code]...
View 3 Replies