[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] Q: about move strings
Game::MassageArgs
pulls anything starting with '-' into parms,
and anything starting with '--' into opts.
~ sharkey
On Fri, 2 Dec 2005, Douglas Zander wrote:
> Greetings, I have finished writing "BlackBox" for the server and everything
> seems to work so far except when I make such a move:
> -n14,-k10,10
> this move crashes my test server. on the other hand this move:
> 10,-n14,-k10
> does not crash my test server and works just fine. the order of the elements
> are not important so I could just say in the rules that a player should not
> make a deletion move as the first move (with the hyphen sign). yet, I would
> like to know why it doesn't work when the hyphen is the first character of the
> move string. Any ideas? Do any other games on this server use a hyphen as the
> very first character of a move string?
> (It should be noted that an addition move with a plus sign as the first
> character works without crashing my server, like so:
> +n14,-k10,10
> I'm just wondering if Richard's server has a thing about using the hyphen as
> the very first character in a move string. Thanks for any suggestions.