Futurecraft Forums

A forum dedicated to communication and innovation!
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Welcome, one and all, to the Futurecraft Forums!

Share | 
 

 Tell31's Java adventure!

View previous topic View next topic Go down 
Go to page : 1, 2, 3  Next
AuthorMessage
Dux Tell31
Recruit
Recruit
avatar

Posts : 378
Join date : 2012-01-05
Location : That is out of the question

PostSubject: Tell31's Java adventure!   Mon Jul 16, 2012 4:37 pm

Beginning today I'm taking a class that introduces java to teens and gets them started with it. Its been lots of fun and I'll be doing it all week long!

I can thank all of you (mostly) for inspiring me to do this.

DAY 1
What i'v done so far is make a program (using Oracle) that displays the first ten numbers of the fibonacci sequence
Spoiler:
 


Last edited by tell31 on Mon Jul 16, 2012 6:22 pm; edited 1 time in total
Back to top Go down
View user profile
Laibach
General
General
avatar

Posts : 2024
Join date : 2012-01-23
Age : 66
Location : Frozen Fields

PostSubject: Re: Tell31's Java adventure!   Mon Jul 16, 2012 4:41 pm

Have fun! once you do that, try looking at this

It's how I learned/am learning java, it gets pretty in depth.


is it going to get into Object Oriented Programming?

although why do you thank us for the Fibonacci sequence?
Back to top Go down
View user profile
Tell
Recruit
Recruit
avatar

Posts : 220
Join date : 2012-02-25
Age : 102
Location : Winterhold

PostSubject: Re: Tell31's Java adventure!   Mon Jul 16, 2012 6:36 pm

I got mine to say Type any number and then it displays that meny numbers of the Fibonacci sequence. Its totaly better Very Happy (Me and him are in the same class)
Back to top Go down
View user profile
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
avatar

Posts : 3075
Join date : 2012-01-17
Location : Hahahaha.

PostSubject: Re: Tell31's Java adventure!   Mon Jul 16, 2012 10:59 pm

Cool. Maybe we should all do Ludem Jam.

_________________
fr0stbyte124 wrote:
You know, I was thinking we should have a 3D crafting grid for complex recipes, but Kielaran is right: why have three dimensions when you can have six? Truly I don't know how we ever got by with a measly two.


Mackeroth? wrote:
Now, if Fr0stbyte wrote that, someone would make a sig, guaranteed. So what are you going to do now?
Back to top Go down
View user profile
The Schmetterling
DEV
DEV
avatar

Posts : 3123
Join date : 2011-08-31
Location : I'm a butterfly.

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 5:11 am

Keon wrote:
Cool. Maybe we should all do Ludem Jam.

Is that a joke?

_________________



Noli timere tenebras quam lucem, id est tortor.


Spoiler:
 



Mackeroth est abiit. Hinc abiit, et misit me in profundum subconscious!
Back to top Go down
View user profile
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
avatar

Posts : 3075
Join date : 2012-01-17
Location : Hahahaha.

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 10:12 am

No. If we all get good at java, we should all make games for our own competition. Maybe not Ludem Dare, but still.

_________________
fr0stbyte124 wrote:
You know, I was thinking we should have a 3D crafting grid for complex recipes, but Kielaran is right: why have three dimensions when you can have six? Truly I don't know how we ever got by with a measly two.


Mackeroth? wrote:
Now, if Fr0stbyte wrote that, someone would make a sig, guaranteed. So what are you going to do now?
Back to top Go down
View user profile
Tell
Recruit
Recruit
avatar

Posts : 220
Join date : 2012-02-25
Age : 102
Location : Winterhold

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 4:34 pm

So right now I just got back from brake at the camp and I just meght some one who joined minecraft at Indev! and we worked on GUI's to day Very Happy
Back to top Go down
View user profile
Laibach
General
General
avatar

Posts : 2024
Join date : 2012-01-23
Age : 66
Location : Frozen Fields

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 9:32 pm

I'm already working on a game of my own Very Happy


Yes, I actually know what I'm going to do and how.


tell wrote:
I got mine to say Type any number and then it displays that meny numbers of the Fibonacci sequence. Its totaly better Very Happy (HE(I think?) and I are in the same class)

Congratulations, are you getting/going to get into Object Oriented stuff?
Back to top Go down
View user profile
Dux Tell31
Recruit
Recruit
avatar

Posts : 378
Join date : 2012-01-05
Location : That is out of the question

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 10:11 pm

tell wrote:
So right now I just got back from brake at the camp and I just meght some one who joined minecraft at Indev! and we worked on GUI's to day Very Happy

Um, worng. All we did (at least what I did) was wait for people to finish de-bugging their code, and get COMPLETELY turned around by functions that use exponent in a equation. And now because of said confusion, I hate "For loops".

Ya, I had fun.
Back to top Go down
View user profile
fr0stbyte124
Super Developrator
Super Developrator
avatar

Posts : 1835
Join date : 2011-10-13

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 10:36 pm

But for loops are your greatest ally.
Back to top Go down
View user profile
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
avatar

Posts : 3075
Join date : 2012-01-17
Location : Hahahaha.

PostSubject: Re: Tell31's Java adventure!   Tue Jul 17, 2012 10:44 pm

fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

_________________
fr0stbyte124 wrote:
You know, I was thinking we should have a 3D crafting grid for complex recipes, but Kielaran is right: why have three dimensions when you can have six? Truly I don't know how we ever got by with a measly two.


Mackeroth? wrote:
Now, if Fr0stbyte wrote that, someone would make a sig, guaranteed. So what are you going to do now?
Back to top Go down
View user profile
The Schmetterling
DEV
DEV
avatar

Posts : 3123
Join date : 2011-08-31
Location : I'm a butterfly.

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 4:48 am

Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!

_________________



Noli timere tenebras quam lucem, id est tortor.


Spoiler:
 



Mackeroth est abiit. Hinc abiit, et misit me in profundum subconscious!
Back to top Go down
View user profile
Laibach
General
General
avatar

Posts : 2024
Join date : 2012-01-23
Age : 66
Location : Frozen Fields

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 11:15 am

Mackeroth? wrote:
Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!


...I don't think you know what they're talking about...


for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:

int n;
while(n < 10){
n++
//code here
}

you can just put(I think I have the order wrong here):

for(int n = 0; n <10; n++){
//code here
}
Back to top Go down
View user profile
Tell
Recruit
Recruit
avatar

Posts : 220
Join date : 2012-02-25
Age : 102
Location : Winterhold

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 3:00 pm

So today we started working on our final projects for the week (today's Wednesday) and I'm doing a variation of asteroids. So far I have the spaceship done now I'm working on doing the asteroids coming down in a random order then I have to work on the lives and the asteroid exploding as the ship hits it.
Back to top Go down
View user profile
fr0stbyte124
Super Developrator
Super Developrator
avatar

Posts : 1835
Join date : 2011-10-13

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 4:11 pm

You're writing Asteroids in an intro java course? Does it have graphics, or are you doing it in ascii?
Back to top Go down
View user profile
The Schmetterling
DEV
DEV
avatar

Posts : 3123
Join date : 2011-08-31
Location : I'm a butterfly.

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 5:21 pm

Dayman wrote:
Mackeroth? wrote:
Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!


...I don't think you know what they're talking about...


for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:

int n;
while(n < 10){
n++
//code here
}

you can just put(I think I have the order wrong here):

for(int n = 0; n <10; n++){
//code here
}

In Python, if I needed an infinite loop I just went:

Code:
while 1>0:
#code here


Why is there no indent button?

_________________



Noli timere tenebras quam lucem, id est tortor.


Spoiler:
 



Mackeroth est abiit. Hinc abiit, et misit me in profundum subconscious!
Back to top Go down
View user profile
Laibach
General
General
avatar

Posts : 2024
Join date : 2012-01-23
Age : 66
Location : Frozen Fields

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 5:47 pm

Mackeroth? wrote:
Dayman wrote:
Mackeroth? wrote:
Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!


...I don't think you know what they're talking about...


for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:

int n;
while(n < 10){
n++
//code here
}

you can just put(I think I have the order wrong here):

for(int n = 0; n <10; n++){
//code here
}

In Python, if I needed an infinite loop I just went:

Code:
while 1>0:
#code here


Why is there no indent button?

That's what I would like to know.

and it's (I think) slightly less taxing on the system to put while(true) or for(;Wink instead of 1>0, because the system doesn't have to do as many evaluations or something.

although In python I doubt that matters.
Back to top Go down
View user profile
Keon
Lord/Lady Rear Admiral 1st
Lord/Lady Rear Admiral 1st
avatar

Posts : 3075
Join date : 2012-01-17
Location : Hahahaha.

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 6:04 pm

While is better, for is just a while loop with iterators. While can do so much more.

OH MY GOSH WHILE STOPPED SOUNDING LIKE A WORD. I mean, while. Just say it. While, while, while.

_________________
fr0stbyte124 wrote:
You know, I was thinking we should have a 3D crafting grid for complex recipes, but Kielaran is right: why have three dimensions when you can have six? Truly I don't know how we ever got by with a measly two.


Mackeroth? wrote:
Now, if Fr0stbyte wrote that, someone would make a sig, guaranteed. So what are you going to do now?
Back to top Go down
View user profile
Tell
Recruit
Recruit
avatar

Posts : 220
Join date : 2012-02-25
Age : 102
Location : Winterhold

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 6:54 pm

fr0stbyte124 wrote:
You're writing Asteroids in an intro java course? Does it have graphics, or are you doing it in ascii?

Um

1) Yes

2) I'm doing graphics and I'm also using the StdDraw.java class to help me

One last thing is that this is a varyation to the Asteroids game. In my verson the astroids come at you and you have to doge them.
Back to top Go down
View user profile
Last_Jedi_Standing
Moderator
Moderator
avatar

Posts : 3033
Join date : 2012-02-19
Age : 105
Location : Coruscant

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:01 pm

tell wrote:
fr0stbyte124 wrote:
You're writing Asteroids in an intro java course? Does it have graphics, or are you doing it in ascii?

Um

1) Yes

2) I'm doing graphics and I'm also using the StdDraw.java class to help me

One last thing is that this is a varyation to the Asteroids game. In my verson the astroids come at you and you have to doge them.
You can't shoot!?

_________________
Spoiler:
 

Back to top Go down
View user profile
Dux Tell31
Recruit
Recruit
avatar

Posts : 378
Join date : 2012-01-05
Location : That is out of the question

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:02 pm

.....woh, alien


Anyway as my brother said, everyone in the class started their independent projects today.

I'v decided on making "Tell-tac-toe" for mine. Its coming along nicely with the playing grid completed, and the ability to place X or O on the screen via clicking.

The biggest problem at the moment is that it randomly choses which marker to insert on the screen; for example "X" could go 3 times in a row, then once for "Y", then it places "X" again.

It also doesn't tell you if someone won (getting 3 in a row; I would hope you all know this rule though).



study study study study study study study study study study

I'll post the code for it tomorrow for critiquing, its on the Camp's computers at the moment


Last edited by tell31 on Wed Jul 18, 2012 7:05 pm; edited 1 time in total
Back to top Go down
View user profile
hyperlite
Captain
Captain
avatar

Posts : 1529
Join date : 2012-01-18

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:04 pm

My code:

( :
: (
: D
D :

^"%:#" SPaceship go pew pew pew #@Kapow!#@$@$ Boom shew shew pew.

[Sound] "Were going down" NOpe I haz da loops

@$#
1 affraid

"froot loops?"#%

##$#

End now plzzzzzzzzzzzz


Back to top Go down
View user profile
Dux Tell31
Recruit
Recruit
avatar

Posts : 378
Join date : 2012-01-05
Location : That is out of the question

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:07 pm

FROST LOOPS - the most intelligent cereal EVER!!!!?
Back to top Go down
View user profile
hyperlite
Captain
Captain
avatar

Posts : 1529
Join date : 2012-01-18

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:09 pm

Make NIM , and make an impossible AI for it and nobody will want to play it with you because it is so simple.
Back to top Go down
View user profile
fr0stbyte124
Super Developrator
Super Developrator
avatar

Posts : 1835
Join date : 2011-10-13

PostSubject: Re: Tell31's Java adventure!   Wed Jul 18, 2012 7:31 pm

Dayman wrote:
Mackeroth? wrote:
Dayman wrote:
Mackeroth? wrote:
Keon wrote:
fr0stbyte124 wrote:
But for loops are your greatest ally.

NAY! While loops are indeed holier than your foul for loops.

The most superior loop there is could only be the fabled Loop-hole!

Yeah! Ownage!


...I don't think you know what they're talking about...


for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:

int n;
while(n < 10){
n++
//code here
}

you can just put(I think I have the order wrong here):

for(int n = 0; n <10; n++){
//code here
}

In Python, if I needed an infinite loop I just went:

Code:
while 1>0:
#code here


Why is there no indent button?

That's what I would like to know.

and it's (I think) slightly less taxing on the system to put while(true) or for(;Wink instead of 1>0, because the system doesn't have to do as many evaluations or something.

although In python I doubt that matters.
Most high level languages will do basic optimization on your code, e.g. unrolling loops, tweaking variable scope, and so forth. Pretty much there's not going to be a difference between various ways of saying "repeat forever" or for vs while, so don't stress over it. There is a difference in C++, though.


hyperlite wrote:
Make NIM , and make an impossible AI for it and nobody will want to play it with you because it is so simple.
Bonus points for using a graph search AI instead of hard coding the strategy.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Tell31's Java adventure!   

Back to top Go down
 
Tell31's Java adventure!
View previous topic View next topic Back to top 
Page 1 of 3Go to page : 1, 2, 3  Next
 Similar topics
-
» Verify command when used with Java,JUNIT and Eclipse
» STP's Share Your Adventure Photo Contest
» opera browser not loading the page using selenium Rc(Java)
» JAVA tunnel Based UAE Solution Available in Just $149 @ VoIP
» [Help] Java input Username field as a timestamp

Permissions in this forum:You cannot reply to topics in this forum
Futurecraft Forums :: General Area :: Off-Topic Area-
Jump to: