Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Learning Java Through Violence

Posted by michael on Sun Sep 09, 2001 10:20 AM
from the is-there-any-other-way dept.
Joe writes: "Someone introduced me to a new game called Robocode and now I'm hooked as well as my 17 year old son. We are both learning Java while playing the game or I should say while building our Java robots. The game is setup to teach you how to handle events, how to create inner classes, and other Java techniques to build more sophisticated Java bots. I have a c++ background so I've been helping my son with his bots, but he's catching on very fast. It's turning out to be a cool and easy way to get the kid clued into programming and best of all its free." I'll bet if the little Logo turtles shot at each other, I would have had more fun programming as a kid.
This discussion has been archived. No new comments can be posted.
Learning Java Through Violence | Log In/Create an Account | Top | 225 comments (Spill at 50!) | Index Only | Search Discussion
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • Hmmmm. (Score:3, Funny)

    by dr_dank (472072) on Sunday September 09 2001, @10:25AM (#2270695) Homepage Journal
    Now if we could only have Quake III teach reading, we'd be good to go.
    • Re:Hmmmm. by n3m6 (Score:2) Sunday September 09 2001, @12:02PM
      • 1 reply beneath your current threshold.
    • Re:Hmmmm. by dairypope (Score:1) Monday September 10 2001, @04:19PM
    • 1 reply beneath your current threshold.
  • This is how i learned C, too (Score:3, Redundant)

    by Smallest (26153) on Sunday September 09 2001, @10:25AM (#2270697)
    There was a thing just like this for Amigas in the late 80's that used a crippled version of C for the bots. You could use "radar", shoot things, move, etc.. a lot of fun - and a good way to learn C.

    And, before that, i actually wrote my own version of a programmable bot game for C64, using a homemade 'machine' language. no slick graphics here - you watched the memory space (each bit in the arena's memory space lit up as a single pixel on the 340x280 screen).

    All of this based on a Scientific American article about a phenomenon called "Core Wars".

    -c
  • Awesome! by Captain_Frisk (Score:2) Sunday September 09 2001, @10:25AM
    • 1 reply beneath your current threshold.
  • by Anonymous Coward on Sunday September 09 2001, @10:28AM (#2270705)
    Kill all the other tasks as quickly and accurately as possible before your computer crashes.
  • Now that's smart by n0-0p (Score:1) Sunday September 09 2001, @10:31AM
  • Mindrover by JanneM (Score:1) Sunday September 09 2001, @10:33AM
    • Re:Mindrover by gnudutch (Score:1) Sunday September 09 2001, @10:42AM
    • 1 reply beneath your current threshold.
  • Yes, there are others (Score:5, Informative)

    by interiot (50685) on Sunday September 09 2001, @10:36AM (#2270720) Homepage
    Yes, robocode is not the first, see DMOZ's [google.com] entry. Corewars was perhaps the most famous. Okay, now we can move on to talking about Robocode's merits instead of talking about its family tree.
  • Is there a question or something here? by dmorin (Score:2) Sunday September 09 2001, @10:38AM
  • nice! by gnudutch (Score:2) Sunday September 09 2001, @10:39AM
    • Re:nice! by bugg (Score:2) Sunday September 09 2001, @10:49AM
      • Re:nice! by maan (Score:1) Sunday September 09 2001, @11:14AM
        • Re:nice! by bugg (Score:2) Sunday September 09 2001, @12:01PM
    • Re:nice! by sopwath (Score:1) Sunday September 09 2001, @09:57PM
    • Re:nice! by dmorin (Score:2) Monday September 10 2001, @07:42AM
  • Violent Computer Games by Henry V .009 (Score:2) Sunday September 09 2001, @10:41AM
  • New idea? by forsaken33 (Score:1) Sunday September 09 2001, @10:45AM
  • good job /. ers by necrognome (Score:1) Sunday September 09 2001, @10:49AM
  • OS X by dukethug (Score:1) Sunday September 09 2001, @10:51AM
  • combinations by crowke (Score:1) Sunday September 09 2001, @10:51AM
  • another recent game by ziggles (Score:1) Sunday September 09 2001, @10:55AM
  • More programming, less game... by hillct (Score:2) Sunday September 09 2001, @10:57AM
  • Another idea.. (Score:3, Interesting)

    by dwlemon (11672) on Sunday September 09 2001, @11:00AM (#2270773) Homepage
    Has this been done?

    What about a programming puzzle game? You'd get a task and some constraints and have to write a program that meets the requirements.

    from "Output the alphabet without using any character literals." to.. something more complicated. permutations of a string?

    It'd just have to parse the source file to see if they followed the rules, see if it compiles (warnings not allowed!), and then run the program with whatever input it needs, and parse the output.
  • down they go. by SubtleNuance (Score:2) Sunday September 09 2001, @11:02AM
  • Old hat by DrXym (Score:2) Sunday September 09 2001, @11:04AM
    • C++Robots by mgarraha (Score:3) Sunday September 09 2001, @12:04PM
  • heh.. reminds me of school by Johnny5000 (Score:1) Sunday September 09 2001, @11:09AM
  • by Grelli (98061) on Sunday September 09 2001, @11:13AM (#2270798) Homepage
    There are those that will tell you it works exactly opposite this.

    You Learn Violence through trying to program in Java!
    • 1 reply beneath your current threshold.
  • interview with the developer (Score:5, Informative)

    by n3m6 (101260) <n3m6NO@SPAMhotmail.com> on Sunday September 09 2001, @11:18AM (#2270811) Homepage Journal
    kuro5hin has a much more in depth look at robowars [kuro5hin.org].

    • 1 reply beneath your current threshold.
  • Variety Of "Java Robots" out there... by Tronster (Score:2) Sunday September 09 2001, @11:20AM
  • Just like Apple's RobotWars by shodson (Score:2) Sunday September 09 2001, @11:25AM
  • intergalactics.net by Chagrin (Score:2) Sunday September 09 2001, @11:25AM
  • Lame! by vishakh (Score:2) Sunday September 09 2001, @11:25AM
    • Assembly 'Bots by stokes (Score:1) Monday September 10 2001, @09:46AM
    • 1 reply beneath your current threshold.
  • I wanna learn by cyberbob2010 (Score:1) Sunday September 09 2001, @11:33AM
  • IBM server? by deadgoon42 (Score:1) Sunday September 09 2001, @11:41AM
    • 1 reply beneath your current threshold.
  • realtimebattle by niklaus (Score:1) Sunday September 09 2001, @11:42AM
  • Stored Procedures all over again by Tablizer (Score:1) Sunday September 09 2001, @11:47AM
  • Learning vs. Imitating by egdull (Score:2) Sunday September 09 2001, @11:49AM
  • learning company-robot game by faithhopeandcharity (Score:1) Sunday September 09 2001, @11:56AM
  • ZZT OOP language by Thrakkerzog (Score:1) Sunday September 09 2001, @12:12PM
  • by cvanaver (247568) on Sunday September 09 2001, @12:29PM (#2270964)
    Can be found at: http://www.robocode.net/
  • What a coincidence by wrinkledshirt (Score:2) Sunday September 09 2001, @12:29PM
  • MindRover (Score:5, Insightful)

    by OverCode@work (196386) <overcode@NOsPAm.gmail.com> on Sunday September 09 2001, @12:39PM (#2270988) Homepage
    http://www.cognitoy.com

    And, of course, Loki ported it to Linux.

    It's an incredibly addictive robot battle game. You generally build robots with a GUI interface, but for serious hackers there is an object oriented definition language called Ice that compiles into the same VM code as the GUI builder.

    -John
    • Re:MindRover by SuiteSisterMary (Score:2) Sunday September 09 2001, @01:17PM
    • MindRover RTS Games by BigSlowTarget (Score:2) Sunday September 09 2001, @06:30PM
  • Doesn't like JDK 1.4beta2 by Brian Stretch (Score:2) Sunday September 09 2001, @12:41PM
  • Weighing the good Vs. Bad by TheStruuus (Score:1) Sunday September 09 2001, @01:19PM
  • Robot Odyssey (Apple II) by e7 (Score:2) Sunday September 09 2001, @01:45PM
  • real time battle by Anonymous Coward (Score:1) Sunday September 09 2001, @01:59PM
  • Flowerpower by manon (Score:1) Sunday September 09 2001, @02:17PM
  • AT-Robots by Gogl (Score:2) Sunday September 09 2001, @02:33PM
  • Tournament Mode or network API by Curt Cox (Score:1) Sunday September 09 2001, @03:11PM
  • CRobots back in the 80's is the granddaddy by EQ (Score:1) Sunday September 09 2001, @03:56PM
  • RoboCode Repository WebSite - Exchange Bots! by DanLynn (Score:2) Sunday September 09 2001, @04:17PM
  • There are (N+1) of these games (Score:4, Insightful)

    by plastik55 (218435) on Sunday September 09 2001, @05:25PM (#2271540) Homepage
    There are a number of these kinds of games. Other people have mentioned Crobots, Jrobots, and a dozen others I've never heard of. One of my favorites was RoboWar [robowar.co.uk] for the Mac, because it used a very small stack-based language, designed in such a way that the processor speed of the robot was limited. Each robot could execute only a limited number of operations per time step, which meant that efficient implementation of your algorithm was the biggest factor in how well your robot did. The author of the game also held annual tournaments that aspiring RoboWarriors could submit their entries to, and see how they fared against the state of the art. That meant that the robots, even with very limited computational capacity, had a very rapid evolution toward very sophisticated algorithms. Early robots just roved around and fired whenever they saw something in their sights. As time went on, the entries seen in the tournaments were able to camp in corners, dodge incoming fire, "lead" their targets, and employ inter-robot communication for team battles.


    Learning throgh RoboWar to produce advanced behaviour out of a slow and limited language was a great help when I later went on to dabble in embedded systems--the skill set required is very similar.

  • Robot Gladiators: http://www.roboforge.com/ by mikemetalhead (Score:1) Sunday September 09 2001, @08:22PM
  • RoboCode + Lego Mindstorms = Living Room Battlebot by rbeattie (Score:1) Sunday September 09 2001, @08:47PM
  • C++ through Sex by Jebediah21 (Score:1) Monday September 10 2001, @12:21AM
  • educational violence? by projecto2501 (Score:1) Monday September 10 2001, @04:41AM
  • Ultimate holy war! :) by ^Z (Score:1) Monday September 10 2001, @06:33AM
  • Mirror of the Setup-File by XRayX (Score:1) Monday September 10 2001, @09:50AM
  • Missing the point by Jedbro (Score:1) Monday September 10 2001, @10:49AM
  • Please tell me by jsse (Score:2) Monday September 10 2001, @10:52AM
  • Re:Moral implications... by scrytch (Score:2) Sunday September 09 2001, @10:39AM
  • You have got to be kidding . . . (Score:3, Insightful)

    by Wire Tap (61370) <frisina@atlant[ ]b.net ['icb' in gap]> on Sunday September 09 2001, @10:40AM (#2270732)
    First of all, take a look at the alternatives to "learning through violence."

    1) Barney. Or, as I like to call it "unlearning through sensory numbing." Obviously not a good choice for anyone, at all, period.

    2)Not learning, although still through violence. Example: most pointless video games. I say most, because I am still a firm believer in the idea that viedo games are great for the imagination, among other things.

    This leaves us with the healthy alternative of:

    C)Learning through violence! Yes, blowing up giant robots is FUN, and most kids would be thrilled to pull the trigger and show off his or her prowess on the virtual battlefield. I know I would love to destroy a an opposing process or script with the knack of my own creation. What is the big problem, when the kid would more than likely spend his or her time on a (possibly) less productice game? I say that this is a great idea. People learn better when they are having fun with what they are doing.

    Finally, it is not "rewarding" the child for following through with a violent act - it is simply a mode by which the student can learn a new skill. Haven't you ever built an erector set? Most of them involved the construction of battlefield tanks or other war machines. It just happens to be one of the best-suited applications for teaching programming.

    [ Parent ]
  • Re:Moral implications... (Score:3, Insightful)

    by tlianza1 (471577) on Sunday September 09 2001, @10:49AM (#2270752) Homepage
    The violence is completely unnecessary, and can warp an impressionable young mind.
    The kid is seventeen. He most likely has a driver's license by now. The violence is not completely unnecessary, as it is not uncommon for teenagers (even those younger than himself) to love action movies or other films and TV shows with violence. I'm sure a lot of us did when we were that age and turned out AOK. In this case the subject matter may be precisely what makes the game more fun and entertaining. Create a game about puppy dogs and ice cream and see how many teenagers are interested enough to pick it up and learn a new programming language...
    [ Parent ]
  • by firewort (180062) on Sunday September 09 2001, @10:55AM (#2270763)
    When I was in 3rd and 4th grades, way back, we had Apple ][ and IBM PC Machines, and we were taught BASIC, and LOGO, both turtle and mathematic instructions. We had district-wide competitions. Computing was for more than teaching productivity software and reader rabbit-crap.

    This is something that has been lost from the curriculum, and should be regained.

    Joe's son is 17, and while still developing, I'd venture that any associations he's made with violence and good were made long before he reached this age. Give the kid and parent some credit, the kid is an adolescent and hasn't rejected hanging out with his Dad- they must be doing something right!
    [ Parent ]
  • Re:Moral implications... by DickBreath (Score:2) Sunday September 09 2001, @11:13AM
  • Re:WHO GIVES A FLYING FUCK? by Kombat (Score:1) Sunday September 09 2001, @11:18AM
    • 1 reply beneath your current threshold.
  • Re:Moral implications... by iCEBaLM (Score:2) Sunday September 09 2001, @11:35AM
  • Re:Slashcode revisited! Bumper Double Issue! by Pengo (Score:2) Sunday September 09 2001, @11:37AM
  • Re:Moral implications... by G-funk (Score:2) Sunday September 09 2001, @11:43AM
  • What!? by battjt (Score:1) Sunday September 09 2001, @11:45AM
  • Re:Moral implications... (Score:3, Insightful)

    by osgeek (239988) on Sunday September 09 2001, @11:46AM (#2270871) Homepage
    Well, I'm sure if little boys were interested in programming pink unicorns to run around kissing daisies in meadows, then a wonderful teaching tool could be constructed around that very concept. As it is, though, a "battle" provides a setting that motivates young boys to get into the educational activity enough to make it worthwhile.

    Besides, having grown up in a house where my parents didn't really censor my cable access, I find it hard to believe that shielding kids from all possible influences really makes a difference. I never got into fights in highschool or college, despite watching Rocky I - V. I've always felt that an intellectual approach to conflict is far better than a violent one.

    How could that be, when I watched The Exorcist and Jaws before I was even a teenager! Why, I even used to watch The Roadrunner back when old Wile E Coyote used to actually hit the ground!

    The key to raising your kids to avoid exerting violent behavior isn't to shield them from all possible observations of it. It isn't even that helpful to have them avoid board and video games where violence is a goal.

    The key is to teach your kids the difference between fantasy and reality. "Yeah, it's fine to go watch a Jackie Chan movie, but when you leave the theatre, don't kick your friends and pretend that you're in a karate fight." "Play Quake and Duke Nuke'em, but remember that they're just video games."

    Additionally, build loving trusting relationships with your children and encourage them to build similar relationships with others. Teach them how to think their ways through problems, rather than giving up and reacting violently.

    [ Parent ]
    • 1 reply beneath your current threshold.
  • Re:Moral implications... by eddy the lip (Score:2) Sunday September 09 2001, @11:46AM
  • OK, I think this "violence is bad" argument is being taken way beyond a sane or healthy level here. You call this game violent? Did you ever play Tank for Atari as a kid? This is game a remake of that game with modifiable AI and better graphics. You aren't looking at horrific scenes of brutal warfare; you see these small robots shooting little pellets at one another with a decreasing counter above them. Hardly what I would consider violent. Suppose kids were not exposed what you consider violence. How would they deal with the real world? They couldn't, they'd probably go crazy and we'd be worse off than we are now. I don't know about you, but I was technically a kid when I played Wolfenstein 3d, Spear of Destiny, Doom, Doom2, and Quake. You fail to reallise the premise of these games, they clearly state that you have two options: kill, or be killed, they do not present you with the peaceful resolution option because it is assumed to have failed. A situation we would hope never to put into but one we as a species are innately curious about. I also don't feel these games had any negative affect on me whatsoever, in fact, they gave my life direction: they inspired me to study Computer Science, and I'm sure there are millions, if not billions, of kids playing violent games every day. How many are cold-hearted killers? Very few. Due to the fact that Joe appears to be a good parent (helping his son pick up some skills that will be very handy later in life), his son is almost a zero risk for causing another Columbine. This debate against violence has been taken beyond reason. It has become more of a witch-hunt.
    [ Parent ]
  • Re:Moral implications... by Reality Master 101 (Score:2) Sunday September 09 2001, @12:01PM
  • Re:Moral implications... by j7953 (Score:2) Sunday September 09 2001, @12:04PM
  • Real violence vs. game "violence" by gad_zuki! (Score:2) Sunday September 09 2001, @12:48PM
  • Re:Moral implications... by mr. marbles (Score:2) Sunday September 09 2001, @12:57PM
    • 1 reply beneath your current threshold.
  • Online version for P2P by shodson (Score:2) Sunday September 09 2001, @02:07PM
  • Re:idiots by Luggage (Score:1) Sunday September 09 2001, @11:04PM
  • Re:idiots by yzquxnet (Score:1) Sunday September 09 2001, @11:51PM
  • Re:Damn you Slashdotters!! by plasmator (Score:1) Monday September 10 2001, @11:23AM
  • Re:Moral implications... by NicePaisleyHorsy (Score:1) Monday September 10 2001, @07:59PM
  • 31 replies beneath your current threshold.