Soldato
- Joined
- 9 Mar 2006
- Posts
- 4,001
- Location
- Rhone-Alpes, France
Well if asking for a bit of maths help is 'cheating ', this thread must be worth a jail sentence at least.
Your signature is perdy..... But less of the distractions, I would hardly class your thread as cheating and I need to figure a way to randomly place treasuresJohanson said:Well if asking for a bit of maths help is 'cheating ', this thread must be worth a jail sentence at least.
Good point, dident think of that, Removed all my code and hope no one has coppied or im royaly.....Chrisss said:Well his university may have rules against showing code to other people. For instance, someone on your course may stumble accross this thread and steal your code.
Phnom_Penh said:So have I lol.
@ jcb33,
you can start the game again by calling the game's method, like game.play(); or whatever. To terminate the program, use System.exit(1);.
jcb33 said:Good point, dident think of that, Removed all my code and hope no one has coppied or im royaly.....
Phil99 said:I think he mentioned that he has to use procedural (non-OO) code though, so wouldn't having methods (aside from the Main method) make it OO?
{ {
int x=(int)(Math.random()*7+1), y=(int)(Math.random()*8+1);
if(grid1[x][y] == 0)
{
grid1[x][y] = ring;
}
else if(grid1[x][y]>0)
{
grid1[x][y] = ring;
}
if(grid1[x][y] == 0)
{
grid1[x][y] = ring;
}
if(grid1[x][y] == 0)
{
grid1[x][y] = sword;
grid1[x][y] = sword;
grid1[x][y] = sword;
}
else if(grid1[x][y]>0)
{
grid1[x][y] = sword;
grid1[x][y] = sword;
grid1[x][y] = sword;
}
if(grid1[x][y] == 0)
{
grid1[x][y] = sword;
grid1[x][y] = sword;
grid1[x][y] = sword;
}
else if(grid1[x][y]>0)
{
grid1[x][y] = sword;
grid1[x][y] = sword;
grid1[x][y] = sword;
}
if(grid1[x][y] == 0)
{
grid1[x][y] = statue;
}
else if(grid1[x][y]>0)
{
grid1[x][y] = statue;
}
if(grid1[x][y] == 0)
{
grid1[x][y] = chest;
grid1[x][y] = chest;
grid1[x][y] = chest;
grid1[x][y] = chest;
}
public void randomiseItems()
{
for(int x = 0; x < 6; x++)
{
int xv = random.nextInt(6)+1;
int yv = random.nextInt(7)+1;
if(board[xv][yv].equals ("[ ]"))
{
board[xv][yv] = "[T]";
}
}
}
I wouldn't say that using a while loop to run a method was oo. If he was creating objects, then calling the methods in them, then yes, but otherwise I wouldn't have thought so.Phil99 said:I think he mentioned that he has to use procedural (non-OO) code though, so wouldn't having methods (aside from the Main method) make it OO?
Seems a bit silly though as OO would make it easier in the long run![]()
I don't know... the operative part of that sentence being "Work YOU have done".jcb33 said:Would you actualy get in trouble for having the work you have done posted by you on the net?
True, but maybe programming isn't his desired outcome of his degree, and he just needs to pass this module?
Bes said:I don't know... the operative part of that sentence being "Work YOU have done".
It really really REALLY narks me off that people can just swan through uni like this. I worked hard at my degree, and whilst certain areas were not my area of expertise or whatever you want to call it, I still did 100% my own work and put in the hours to learn how to actually do something myself without being drip- fed huge chunks of code. If he is not good enough to do it, he should fail, and if he fails his degree, too bad.
That's pretty much what ive said since the start of this thread....Plus-44 said:Absolutely agree with you, there's a guy on my course who sponges coding from everyone and it does my nut in. I've learnt to keep my code to myself. He doesnt want to learn he just wants to get the answer straight away, I cant see the point in coming if your gonna do that.
+44
Aye most of the time these mickey mouse unis practically give you the solution to the assignment over the course of the semester.Welshy said:That's pretty much what ive said since the start of this thread....
Answers to any of the questions made by JCB in this thread could be answered by using a book, googling for tutorials, or actually turning up to lectures/tutorials?
Ah but I want to learn, I just dident realise that you need to be 10 steps ahead of what your being taught so dident know how to do.. well much over helloworld. I have learnt a lot from doing this, and I havent been drip fed everything, I fully admit that I got a lot of help, but even so, anything I was given I refused to copy, I learnt how it worked, and why it worked, and then wrote up my own version and kept playing untill I got it working.Plus-44 said:Absolutely agree with you, there's a guy on my course who sponges coding from everyone and it does my nut in. I've learnt to keep my code to myself. He doesnt want to learn he just wants to get the answer straight away, I cant see the point in coming if your gonna do that.
+44
I will also note I have not missed a single lecture, workshop or other since I started uniWelshy said:That's pretty much what ive said since the start of this thread....
Answers to any of the questions made by JCB in this thread could be answered by using a book, googling for tutorials, or actually turning up to lectures/tutorials?
Oh so you didn't realise University required you to be able to work independently and direct your own learning?jcb33 said:Ah but I want to learn, I just dident realise that you need to be 10 steps ahead of what your being taught so dident know how to do.. well much over helloworld.
Bes said:Oh so you didn't realise University required you to be able to work independently and direct your own learning?
And I hope you don't mind me advising you that your spelling and grammar are appalling for someone who is aiming for a degree? I really hope you brush it up for your CV and covering letter, as no employer in their right mind would take you and your potentially ill-gotten degree on board with a CV riddled with spelling errors.