byu
Member
So, I took a course in java this week, it ends today. I'm trying to think of an interesting text-based Java game that I could write, but I'm not sure exactly what. Can any of you give me some suggestions? Thanks.
mhmm...Java.
Obviously, a choose-your-own-adventure story, cubing-based, of course.
(I know php is a weak language, but I can't afford asp)
Try writing Conways Game of Life. That was fun when I was just learning.
$><<"\e[2J";s,o,f,c,u=20,"#"," ";b,m=(z=0..s).map{z.map{(rand<0.3)?o:f
}},[-1,0,1]*3;until c==b;c=b.map{|z|z.dup};$><<"\e[H"<<b.map{|x|x*f}*"
";s.times{|i|s.times{|e|n=(m.sort.zip(m)-[[0,0]]).select{|x,z|o==(c[i+
x]||[])[e+z]}.size;n!=2?b[i][e]=n==3?o:f:f}};sleep 0.2;end
$><<"\e[2J";s,o,f,c,u=20,"#"," ";b,m=(z=0..s).map{z.map{(rand<0.3)?o:f
}},[-1,0,1]*3;until c==b;c=b.map{|z|z.dup};$><<"\e[H"<<b.map{|x|x*f}*"
";s.times{|i|s.times{|e|n=(m.sort.zip(m)-[[0,0]]).select{|x,z|o==(c[i+
x]||[])[e+z]}.size;n!=2?b[e]=n==3?o:f:f}};sleep 0.2;end
So, I took a course in java this week, it ends today. I'm trying to think of an interesting text-based Java game that I could write, but I'm not sure exactly what. Can any of you give me some suggestions? Thanks.
I forgot about that site, I remember when it was first made public.Impressive Joey - I dig the Ruby but Perl wins out over at code golf: http://codegolf.com/conways-game-of-life
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
TimerCube v0.1 (Java) | Software Area | 5 | ||
Javascript port of visualcube | Software Area | 12 | ||
Pure JavaScript solvers for random state 3x3 scrambles | Software Area | 5 | ||
Self-made scramble generator (Java) | Software Area | 1 | ||
Online timer coding/programming (javascript) | Off-Topic Discussion | 11 |