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 ]

chaoticset (2105)

chaoticset
  (email not shown publicly)
http://chaoticset.perlmonk.org/
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [perlmonks.org], and here [javajunkies.org] too, I ramble randomly in my philosophical blog [blogspot.com] and my other blog [blogspot.com]. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Tuesday January 27, 2004
01:02 AM

Game::Matrix

[ #17028 ]
I'm attempting to write a game matrix solver. It's been good going so far; got a nice solid start by sitting down, figuring out precisely what subs would actually be necessary, and then whittling around in those to figure out which ones to write first.

I've got the object constructor (although I'm planning to have two, one for blank initial matrices and one for ones that are filled in already...can't remember why right now, but I get the feeling this might be useful at some point) and the basic accessor method in place.

I felt greatly relieved when the scribbling I did a few hours ago revealed that all the other accessors are almost exactly the same as the most basic possible accessor. Essentially, I'm just writing two verification methods that are wrapped around it, so you can't call a payoff and get a strategy label or vice versa. It looks a lot more simple.

This was one of those cases where I tried desperately to start with a data structure in place but needed to figure out what the interface would look like instead. Once I sat and wrote the interface, the data structure became immediately apparent. Sloppily, I'm effectively just using a huge matrix with some of the edges reserved, and I have a feeling this may bite me in the ass should a 100x100 matrix ever be plugged into the thing for solving -- but, honestly, that's the kind of problem I only wish I had. I wish I'd finished this thing today.

I seem to have a problem with momentum some days. Hopefully, tomorrow won't be one of those days.

Anybody who knows anybody is apparently now on Orkut, confirming my belief that I am indeed an unsocial creature. I keep hearing from people that there's nifty things to do in that there secret club, but nobody will let me look at the Coded Orkut Handbook with their Orkut Decoder Ring. Anybody willing to break ranks and confess as to what sort of nifty things...well, I have no real prize to offer you, save for the knowledge that you have encouraged an insane person in their delusions.

And, in the end, isn't that really enough?

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.
  • I would ask what that is but I probably wouldn't understand the answer. Is it something like Shisen Sho?

    The Orkut webpage looks familiar but I can't think why. It is nothing I could ever join. It would require that I be sociable and have friends. Too many qualifications for me. They might even have a dress code!

    • A dress code they might indeed have.

      I read The Compleat Strategyst some time back, and outlines the basics of Game Theory, where analysis of a set of strategies that can be played against an opponent can be quantified and compared effectively.

      The basis for this is a grid where there is one row for each of your potential options, and one column for each of your opponent's potential options, and at the intersection you record the value of that outcome to yourself.

      With simple games that involve simple st

      --

      ------------------------------
      You are what you think.