aspose file tools*
The moose likes Programming Diversions and the fly likes Code Battle proposal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Code Battle proposal" Watch "Code Battle proposal" New topic
Author

Code Battle proposal

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
I remember we used to do this kind of stuff in photoshop forums (i am sure they still do, but I think I suck at PS so i quit)...

Rules:
  • Number of participants is unlimited
  • Start of the battle is June 25th at Midnight (Pacific time) (25th 12 pm aka 26th 0 am)
  • The battle will last 5 days, ending on midnight of the 30s (beginning of July)
  • Before the battle starts, we all have to agree to the "challenge" that we're doing - that is - what the hell are we gonna be coding So, we have little less than 1 day to do it. I am making first proposal at the bottom.
  • After the battle starts, you can post as much as you want with code snippets, fragements, even finished product - whatever YOU feel is applicable.
  • At the same time, you should criticize your opponents and tell them how much their coding sucks (or does not)
  • You don't have to write all your code yourself. A good programmer is a resourceful programmer. Google and your grandma are your freinds.
  • At the end of the battle, all the participants must post their VERY FINISHED product. Then altogether, they must decide who's the winner (with the help of the community)
  • If the winner could not be selected due to an argument, ALL participants are considered to have LOST.
  • The final product will be evaluated on the aspects of clarity, performance, stability, design.
  • All of these rules are subject to change.
  • WINNER TAKES ALL: Bragging rights, and if there were money on the table - all the money.




  • What do you guys think? I believe this would be a great opportunity for all of us to improve our coding, and have some fun. In Photoshop forum, people went from nothing to being expert designers thanks to this kind of system...


    Ok, my first proposal for the battle:

    Write a 100% Java based program that acts as a harmless worm. Basically, there must be a server part to it, which would run as a daemon, which would have some port open, which would allow for some data to be recieved as a byte code (which would be the worm), and it would execute it. After that, the worm would "infect" that computer, and crawl the internet and the internal network, checking all other machines that have that port open, and attempt to infect them.

    When the worm "infects" a system, it creates a file "/worm.txt" with contents: "you've been infected by My Name".

    That's my original proposal. We have one day to decide. Are you guys up for the challenge?
    Barry Gaunt
    Ranch Hand

    Joined: Aug 03, 2002
    Posts: 7729
    Sounds as good as Monopoly. But with my luck I'd guess that I'll end up in Jail.


    Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
    Getting someone to think and try something out is much more useful than just telling them the answer.
    Ivan Jouikov
    Ranch Hand

    Joined: Jul 22, 2003
    Posts: 269
    Well, propose something else.

    And since when do we spell jail with a cap?
    Ivan Jouikov
    Ranch Hand

    Joined: Jul 22, 2003
    Posts: 269
    Well since everyone is scared, I declare myself a winner!
    Bert Bates
    author
    Sheriff

    Joined: Oct 14, 2002
    Posts: 8815
        
        5
    Ivan -

    not where I thought you were headed with your original post...

    Ever here of "core wars" ?

    If you would build us a core wars space, I'd build one or two code robots...


    Spot false dilemmas now, ask me how!
    (If you're not on the edge, you're taking up too much room.)
    Ivan Jouikov
    Ranch Hand

    Joined: Jul 22, 2003
    Posts: 269
    huh?
    Bert Bates
    author
    Sheriff

    Joined: Oct 14, 2002
    Posts: 8815
        
        5
    Dude!

    You never heard of core wars? It's real time - one program battling against another in RAM - google it !
    Sonny Pondrom
    Ranch Hand

    Joined: Jun 05, 2001
    Posts: 128
    .
    Write a 100% Java based program that acts as a harmless worm. Basically, there must be a server part to it, which would run as a daemon, which would have some port open, which would allow for some data to be recieved as a byte code (which would be the worm), and it would execute it. After that, the worm would "infect" that computer, and crawl the internet and the internal network, checking all other machines that have that port open, and attempt to infect them.


    I have a real problem with this because it would teach young people how to do something that could as a minimum disrupt the www. However, the Core Wars suggestion is a good one.

    I found the definition shown below. The assembler code is called "Redcode" and the simulator is called "Mars". It would be educational to build the Mars simulator in Java. I'm thinking of a circular track and icon images for the Redcode.

    Core Wars
    A game between `assembler' programs in a machine or machine simulator, where the objective is to kill your opponent's program by overwriting it. Popularized in the 1980s by A. K. Dewdney's column in "Scientific American" magazine, but described in "Software Practice And Experience" a decade earlier. The game was actually devised and played by Victor Vyssotsky, Robert Morris Sr., and Doug McIlroy in the early 1960s (Dennis Ritchie is sometimes incorrectly cited as a co-author, but was not involved). Their original game was called `Darwin' and ran on a IBM 7090 at Bell Labs. For information on the modern game, do a web search for the `rec.games.corewar FAQ' or surf to the King Of The Hill site.
    [ July 01, 2004: Message edited by: Sonny Pondrom ]
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: Code Battle proposal