Search:
Type: Posts; User: djgarrison
Search:
Search took 0.04 seconds.
-
February 1st, 2011, 05:21 PM
sounds like what you need is a while loop that runs until the user presses 1. Put your code in the while loop with the last instruction being getting the input from the user.
-
January 31st, 2011, 05:56 PM
Good afternoon.
Now you can't just pop on and ask "what next?". You should show exactly what you need to do, what you have done to do it, and why you think it might not be working. I'm sure you...
-
January 29th, 2011, 05:10 PM
Just a wild random thought if you are still on this subject. If Pascal has something that is too alien for a Java equivalent then would it be possible to use a third, possibly more common, language...
-
January 29th, 2011, 04:44 PM
You could also represent the faces with a single array and make associations mathematically. So the face the user "sees" could be represented with the top left face being 0 the one to the right...
-
January 29th, 2011, 04:29 PM
You can use a Graphics2D object to draw a grid. Then use a 2D array of boolean for your 1 or 0 (unless you might need more then that, perhaps different numbers represent different vehicles). Then...
-
January 27th, 2011, 01:56 AM
You seem to have some very odd counting going on there. First off you aren't incrementing the loop. You do set the index1 to the value of index2 which I assume is an attempt to increment the loop...
-
January 27th, 2011, 12:13 AM
I'm afraid that's all a bit over my head at the moment. Still sloggin' through the 300s at UW. Lovin' it though! =D If you don't mind hearing what an undergraduate has to say I'd suggest thinking...
-
January 26th, 2011, 02:19 PM
I don't know much about Pascal but the "define before use", as I understand it, means that a function or method must be defined before (or on a line above) it is called in the program. In java you...
-
January 24th, 2011, 11:45 PM
So what is happening when you get to a point that you need the sprites to "reset"? Are they not resetting? If so what are to trying to do to reset them? I would think that a method that reset the...
-
January 24th, 2011, 02:25 PM
You're better off starting from some point that you can define yourself. If you are building a Black Jack game ask yourself:
What is a black jack game?
What is required to play a black jack...
-
January 24th, 2011, 02:10 PM
Now come on no need for getting so defensive. Keang was being blunt and honest. If you just want someone to pat you on the back then let your instructor do that with the grade. I suspect that if...
-
January 20th, 2011, 07:08 PM
as a general rule I usually have a boolean like is_paused. Then an Action that sets the boolean according to the desired state (generally a toggle for the is_paused flag). Then, anything that would...
-
January 20th, 2011, 07:01 PM
I don't think you can add a JFrame into another JFrame as a JFrame is a top level container. You should be able to add as many JPanels to a JFrame as you like though. Can I assume that Attack() and...
-
January 20th, 2011, 03:31 PM
hello all,
I'm starting some work on a video game. I have a lot of the model written but none of the view. My problem is that the only gui I have ever bothered with is swing with layout...
-
January 20th, 2011, 03:16 PM
What do you mean by "the user outputs"? Can you give an example of a set of data that meets the condition for your error and the result?
think about what you are asking the program to do here.
...
-
January 20th, 2011, 02:38 PM
I agree with Keang. Why spend one second complaining about how you don't understand the process when that is one more second you could be spending teaching yourself the process. Still I understand...
-
January 18th, 2011, 01:40 PM
Not the best with regular expressions but I'll take a stab here.
I would seem that you want 3 groups of 3 character length strings and the following "-" of each. If that is the case then maybe...
-
January 17th, 2011, 06:20 PM
Quite right. I guess I overlooked that. I have been groomed in college to migrate from console applications to gui applications. Often forgetting that there are many ways to accomplish a goal.
...
-
January 17th, 2011, 05:56 PM
This forum, as I understand it, is about helping people with specific problems concerning java programming. There are already countless "learn java" tutorials on the web or in books. So if you are...
-
January 17th, 2011, 05:52 PM
Check out this link.
http://www.willamette.edu/~gorr/classes/cs231/lectures/chapter9/arrays2d.htm
It's about using a 2D - array of int to simulate a checkers game. If that is not to your...
-
January 17th, 2011, 03:29 PM
If this is a general flowchart then I don't think you are going to get a lot of answers here, as this is a coding forum. Sure, flowcharts can be a tool to programming, however, they are a subject in...
-
January 16th, 2011, 04:54 PM
So I played some cricket on the site that you provided. I know nothing about the game and it was funny to try to figure out what I was supposed to do. Hit the ball I guess. =D Anyway the game I...
-
January 16th, 2011, 04:41 PM
I would think that if you wanted a z-axis in a 2D game you would need to change the size of the components to give the appearance of an item coming toward you or going away. I figure that would have...
-
January 16th, 2011, 04:33 PM
Good times. Sometimes just having to explain it explicitly to someone else lets you weed out your own mistakes. Glad you are moving forward.
-
January 16th, 2011, 02:23 AM
I'm not sure what you mean by "the methods" to do what you want to do. Are you talking about a general algorithm for doing it or do you mean specifically the method calls that will give you random...
|
Click Here to Expand Forum to Full Width
|