Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Thursday June 13, 2002
05:19 PM

Stratego

[ #5643 ]

Last night I got inspired by a favorite old strategy game my family has suddenly started playing again: Stratego. The result (besides being dead tired this morning from staying up so late) is the beginnings of a Stratego game in Perl. Need to hide one player's pieces from the other and separate it into client-server so you choose between a console frontend, a graphical frontend, or (most importantly, and the reason I wrote it): bots. Oh, and write the code where one piece attacks another. At the moment, all pieces win when attacking and lose when defending.

Of course, who has time to work on something like that? I've got other things I'm supposed to be doing, so I may not come back to it for awhile. It's available to anyone who wants it though under the same terms as Perl, so post if you'd like to run with it. (I'd just like to get it to the point where I could write bots. I wonder if I could finagle a research project or even my masters' thesis out of this.) I guess if I give this away I probably have to change the name to avoid trademark problems.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • ...but probably not in a position to help much.

    Still, I'm very curious. May I take a look at the code?

    (Lame name suggestions, while I'm thinking of it: Freeteego, Stratfreego.)

    --

    ------------------------------
    You are what you think.
    • Cool. Sure, you can see the code, as long as you don't make fun of it. :) I've put it up here. [geocities.com] (May move here [geocities.com] in the future if I decide to keep it at that website.)

      You're literally getting a development snapshot here. There's a nice chunk of repeated code that needs refactoring. Actually there's several. :) Since I'm distributing, though, I took the time to spell out licensing terms (GPL or Artistic license, the usual).

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • Oh, for crying out loud! Can't link directly to a .tar.gz file on geoCities. I presume people here know how to edit the URL and get up a level, but just in case [geocities.com].

        --
        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • Sure, you can see the code, as long as you don't make fun of it. :)

        You overestimate my perl-fu, Sir...

        --

        ------------------------------
        You are what you think.
        • Nah. Been watching you document your learning on this site. Besides, it's not the Perl that's wrong with the program; it's the algorithms in general. This crumminess of this code transcends language barriers!

          --
          J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
        • Couldn't resist. Today's (ack! yesterday's!) Peanuts [peanuts.com] appears to be the first appearance of Marcie, from 1972.

          --
          J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
    • Updated already to version 0.2. Now red can't see blue's pieces, and vice-versa. Also, the board is turned during blue's turn (moves are entered as if blue's perspective were "correct," i.e., red's square 0,0 is the board's square 0,0, but blue's square 0,0 is the board's square 9,9).

      Must sleep. Wish I could just play with this for days. Next step (if there is a next step) is splitting into client/server. I'm going to go dream about it, now. :) Actually, the next step may be a code cleanup and bette

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers