[geeks] Oh my god...

Dave McGuire mcguire at neurotica.com
Fri Nov 29 21:21:04 CST 2002


On Friday, November 29, 2002, at 10:03 PM, Lionel Peterson wrote:
> --- Joshua D Boyd <jdboyd at cs.millersville.edu> wrote:
>> However, just because a program is trivial, that doesn't mean you
>> shouldn't use a relational database.  Sometimes using the right
>> database is what makes a hard program a trivial one.
>
> Algorithims + Data Structures = ___________
>
> Anyone? ;^)

   I sure hope this isn't a serious question. ;)

> My goal is to have a program that remembers every "human" move it has
> encountered, but only "knows" what is a legal move and when the game
> has been won. I want the strategy to come be learned from the "human"
> opponent, not hard-coded in the logic.
>
> By using a relational DB (MySQL most likely), the idea is to catalog
> positions and moves in a table for quick retrieval... Oddly, I've spent
> *way* too much time working on the design, and no time coding so far...

   Eh...Unless you're talking about a stateless program, say, 
front-ended by a web server or whatever, I'd do something like a b-tree 
in memory.  Maybe checkpoint it to a database once in a while or 
something.

        -Dave

--
Dave McGuire                 "You don't have Vaseline in Canada?"
St. Petersburg, FL                     -Bill Bradford



More information about the geeks mailing list