Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Java Programming

Learning Java Through Violence 225

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

Comments Filter:
  • Another idea.. (Score:3, Interesting)

    by dwlemon ( 11672 ) on Sunday September 09, 2001 @12:00PM (#2270773)
    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.
  • by shodson ( 179450 ) on Sunday September 09, 2001 @12:25PM (#2270821) Homepage
    In 7th grade Comp Sci class (only in San Jose, CA!) we used Robot Wars on Apple ]['s that did similar things. Robots would be in a 2-dimensional plane, had a motor, radar and a cannon. You could control these things with code. Your bots would fight each other on the screen. By the way, I had the best bot in the class! I even beat the bots built by the teacher's sons, who were CS students at San Jose State and he always bragged about them.

    Anyways, I've been craving a modern version of this for some time now and haven't been able to find anything. I've thought of building one but I'll have to check this one out.
  • Lame! (Score:2, Interesting)

    by vishakh ( 188958 ) <vishakh@yahGAUSSoo.com minus math_god> on Sunday September 09, 2001 @12:25PM (#2270824) Homepage
    Real men play Core Wars [corewars.org] and learn assembly. This does beat learning Java in Prof. Thronton's ICS 22 class [uci.edu] tho. :-)
  • realtimebattle (Score:1, Interesting)

    by niklaus ( 139415 ) on Sunday September 09, 2001 @12:42PM (#2270862)
    For those who don't care about Java but want to program robots, there is a similar program called realtimebattle [sourceforge.net] which lets you write robots in any language you want (ok, any language which can read and write standard input and output).
  • by egdull ( 142805 ) on Sunday September 09, 2001 @12:49PM (#2270879) Homepage
    In middle school, I built robots for a pascal-based fighting environment such as this one.

    I notice now that I was merely imitating the coding practices found in the example code and the code that my friends and I shared.
    I was learning interfaces and code structure in a very oblique manner.
    I wasn't learning program structure or timing.

    It was a lot of fun, but I didn't walk away from the experience with anything more than a cursory memory of what code is.
  • by Reality Master 101 ( 179095 ) <RealityMaster101@gmail. c o m> on Sunday September 09, 2001 @12:52PM (#2270886) Homepage Journal

    I'll tell you what there is enough of though, self-righteous pricks who think they should be the thought police, and that they have the magical rules as to how everybody should raise their own children.

    While I disagree with the poster's hand-wringing about violence, I have to defend his right to judge others. The biggest problem with society today is not sex, violence, the DMCA or any of that: It's the "who am I to judge" crap. It's everyone's responsibility to judge EVERYTHING and EVERYONE in society, but be willing and prepared to be judged by others.

    Notice that the poster was not calling for laws to be passed, but it is his absolute right and responsibility to judge on a personal basis what he feels is right and wrong. When enough people feel the same way, society can be transformed.

    RM101: Self righteous, and proud of it.

  • C++Robots (Score:3, Interesting)

    by mgarraha ( 409436 ) on Sunday September 09, 2001 @01:04PM (#2270921)
    Ever since I read about the play-by-email C++Robots [gamerz.net] I wondered where I could find the original concept. Thanks!
  • by TheStruuus ( 263229 ) on Sunday September 09, 2001 @02:19PM (#2271062) Homepage
    Violence in a game is always seen as a terrible thing. Especially in this day and age with violence everywhere, I really don't see 2 tanks shooting each other as incredibly violent. Have you played Soldier of fortune or any recent 1st person shooter? You can de-limb a victim and see the blood splatter against the wall.

    Even if this game is violent think of what it is doing, it's trying to get people involved in programming and computers in general. I attend an engineering school and have been amazed at the number of people that have no computer knowledge of any sort, especially in a technological field. Things like this could get people involved at a high school level in computers, so violence is bad, but sometimes the benefits are worth the cost.

E = MC ** 2 +- 3db

Working...