The outcome of that would be interestingBes said:/emails thread to JCB33's tutor![]()
No it realy would not.... dons please delete!Welshy said:The outcome of that would be interesting![]()
Bes said:/seaches all JCB33's posts for info on JCB33's uni![]()
/emails every tutor at Lincoln Univonhelmet said:Shouldn't take long... the PDFs in the OP say it's Lincoln.
Bes said:/emails every tutor at Lincoln Uni![]()
Ok I won't*jcb33 said:please dont
Now is that, your assignment is easy, or you are a pile of pooPhnom_Penh said:Piece of **** tbh.
Hence why im not copying stuff, im looking at it as an example, searching for more on it, learning what it does and why it does it and then rewriting it in my own format...Psyk said:You do realise it's common for comp sci departments to have plagiarism detectors that search the net? And simply renaming variables won't be enough to throw it off.
Psyk said:You do realise it's common for comp sci departments to have plagiarism detectors that search the net? And simply renaming variables won't be enough to throw it off.
Phnom_Penh said:You don't need it in it's own class, I'd just put it in the game's class in it's own method, and then call the method from the main class after they'd played the game.
public void playagain()
{
Scanner sc = new Scanner(System.in);
System.out.println("Would you like to play again? Please enter Y for yes or N For no");
public String replay = "Y";
While(String replay.equals("Y")
{
replay = sc.nextLine().toUpperCase();
If(replay.!equals("Y") & replay.!equals("N"))
{
System.err.println("You're an Eegit");
System.exit(-1);
}
Else If(replay.equals("Y")
{
game.game();
}
Else
{
System.exit(1);
}
}
You'd be expected to look stuff up. Random numbers is easy.jcb33 said:Would there be any way to do it in the line of thought I was having? Realy want to keep it in the relms of what we have been taught if possible... or at least simple as we were not taught random numbers hence my inability to randomly place the treasure!
Well I have the computer taking 5 random guesses for the user... but I need to get the treasure to place randomly on the grid each game, But I also need to keep the treasure in tack, e.g a sword is 3 cells long, and i need to keep it 3 cells long so placing it randomly becomes confusing...Phnom_Penh said:You'd be expected to look stuff up. Random numbers is easy.
Phnom_Penh said:This is pretty basic stuff, I guess it depends how basic you're meant to know.
Essentially you need to create an array of 56 strings, then look them up, by taking the inputted co-ordinates, say like 7, C, using an If statement to read the C, and convert it to 13, and add 7 to it, to go to the 21st square in the array (well 20th position, arrays start at 0), and then read that string in the array to see if there is anything there, and if so add it to the total and tell the user.