[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About "multiple"



(If you don't know what mult [or multiple] is, please read "help multiple"
from pbmserv@gamerz.net.)

What do you think about shortening

    To: pbmserv@gamerz.net
    Subject: mult
    chess move 1234 akur pawwsord e4
    chess board 1432 akur pawwsord d5
    grandchess mvoe 189 akur pawwsord g8=C
    capablanca move 177 akur pawwsord Af4
    shogi board 195 akur pawwsord P5c+
    amazons mvoe 121 akur pawwsord propose
     I think this'll end in a draw anyway!
    congo move 111 akur pawwsord resign

(Yep, mvoe and board are the same as move.)

To:

    To: pbmserv@gamerz.net
    Subject: mult move akur pawwsord
    chess 1234 e4
    chess 1432 d5
    grandchess 189 g8=C
    capablanca 177 Af4
    shogi 195 P5c+
    amazons 121 propose
     I think this'll end in a draw anyway!
    congo 111 resign

?

The original mult (multiple) command, should have the additional syntax:
    mult[iple] [command [user [password]]]

If no arguments are specified, mult operates normally.

If a command is specified without the user and password, mult operates by
modifying the subject lines (ie. the lines that do not start with a
whitespace) under the following rule:
    The command is inserted as the second word of each subject line.

If the command is valid, the user exists but the password is not specified,
the following happens:
    If there is only one word:
        chess
    --> Becomes:
        chess command user
    If there are two words:
        chess 1234
    --> Becomes:
        chess command 1234 user
    If there are more than two words:
        chess 1234 e4 (d5 exd5)
    --> Becomes:
        chess command 1234 user e4 (d5 exd5)
    In other words, the first word stays so, the command is inserted as
    the second word, the second word follows, then user, then the
    remaining words.

If the command is valid, the user exists and the password is correct for
the user, the following happens:
    If there is only one word:
        chess
    --> Becomes:
        chess command user password
    If there are two words:
        chess 1234
    --> Becomes:
        chess command 1234 user password
    If there are more than two words:
        chess 1234 e4 (d5 exd5)
    --> Becomes:
        chess command 1234 user password e4 (d5 exd5)
    In other words, the first word stays so, the command is inserted as
    the second word, the second word follows, then user, then password,
    then the remaining words.

If the command is invalid, the user does not exist or the password is
incorrect, the sender is notified and all the mult'ed commands are not
executed.

This command is great for effects like this:

    To: pbmserv@gamerz.net
    Subject: mult
    chess chat 1234 akur pawwsord
     I wonder why Black did not take that free queen of mine...
    mult move akur pawwsord
     chess 1234 e4
     chess 1432 d5
     grandchess 189 g8=C
     capablanca 177 Af4
     shogi 195 P5c+
     amazons 121 propose
      I think this'll end in a draw anyway!
     congo 111 resign
    mult ratings
     congo
     minishogi
     shogi
     chess
    mult reject akur pawwsord
     backgammon
     chex
     deadgammon
     nackgammon
    mult notify akur password
     all
     chess
    mult show akur
     amazons
     minishogi
     congo

- akur

PS. I have never set my password to pawwsord, but I put it there for
atmosphere.

PPS. Ifmoves (like e4 (d5 exd5)) is not implemented yet! The idea, however,
is available through "help ifmoves".