What I want to do: Create a game that starts with 3 green dots on the left and 3 red dots on the right with a space between them. The endgame ... |
I am working on creating a Java maze game for a project. The maze is displayed on the console as standard output not in an applet. I have created most of ... |
I'm trying to implement The Game of Life in java, as an exercise to learn this language.
Unfortunately I have a problem, as I don't seem able to make this program run ... |
I am to create a game in cmd (not gui) in java, its a larger project, but for now, I'd love to know how would I create a 12x12 grid, spawn ... |
Hi everyone... I have coded this Hangman prog as a school project, however I am experiencing a small problem. The program prints a number of *s for every random word that is chosen. For instance, the word "oasis" would be *****. Yet, when printing the *s, it gives the last letter of the word a "null" value, in other words the ... |
I don't have the book in front of me...but... I think they are talking about a "boat" that is three cells long somewhere in an array that is 10 cells long. The boat could be in position "0,1,2", "1,2,3", "2,3,4" etc., up to position "7,8,9". The trick here is you don't actually need all 10 cells, but only the three relevant ... |
Hello. I'm just finishing up making a hangman game and now i'm adding a good variety of words and i was hoping to get an opinion on the best way of doing this. In my hangman game i have a class called WordList. I'm just in the middle of altering the class to hold all the words i need, as before ... |
|
I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this section, cannot be resolved. I have a feeling it has something to do with the arrays and variables above, I need some ... |
03-10-2011 02:11 AM #1 SnarkKnuckle Member Join Date Mar 2011 Posts 2 Rep Power 0 Dice game help and arrays I'm unsure about what to do with this section of code, errors are on lines 368 - 388, it's underlined in red using Eclipse and says, pointDie*JLabel1 (* is 1-5) as it does this on all lines through this ... |
Hello! I'm writing a small board game. I have two calls to the random method that both generate a random number between 1 and six to simulate two dice. The dice are added together into an int called totalmove. Now, I have an array that starts at [0]. When I roll the dice, I want it to move through the array ... |
Java Code: class Battleship { public static void main(String[] args) { int max = 30; int w = 10; int k = 10; int[][] tab = new int[w][k]; int i = 0, j = 0; while(i < w){ j = 0; while(j < k){ tab[i][j] = 0; j = j + 1; } i = i + 1; } int n ... |
Exactly what Kevin said. You will find that if you post a proper SSCCE the programmers here will be more willing to help you. You cannot expect to ask for help, but then require the person you're asking the question to do all the work. A SSCCE takes that problem out of the equation and from my own experience, I can ... |
that doesn't work for a couple reasons 1) 'this' refers to the current class, which here is GameOfLife. And since GameOfLife doesn't have a getCell() method, you can't call this.getCell() 2) You said you want to copy FROM kopier TO this. Assignment sets the value on the right side into the left side. So if you want to take the value ... |
|
hey guys ...i m making a project of "CHESS GAME"..... in which to identify any pieces of chess board ,i had used described mechanism....(see code of array) ... but it actually not working...it takes garbage value...it is working only for the "Rook"... i can't understand this behavior...so plz help me 2 find out d bugs.. you can also give some more ... |
SunForumsGuest27 Posts: 33,051 Registered: 10/22/10 basic Game of Life programme Using array Posted: Jun 10, 2010 10:56 AM Reply Hi I need some help. I want to show the Game of Life in java using array to show the generation. Like this: java Life Generation: 0 . . . . . . . . . . . . . ... |
|