home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.gamers.org
/
ftp.gamers.org.zip
/
ftp.gamers.org
/
pub
/
games
/
uwp-uml
/
cards
/
unsort.txt
< prev
next >
Wrap
Text File
|
1996-04-08
|
1KB
|
38 lines
Unsort V1.0 Play CCG's online!
Unsort is a small utility that randomly scrambles (or "shuffles") the order
of the lines of a text file. One of it's more obvious applications is to take
a CCG or regular deck, as listed in a text file, and "shuffle" it for use
in online play.
That is, take a text file list of the cards in your deck, shoot it through
unsort, and use the result as your draw pile. A third party referee may be
used to maintain the deck(s) if you don't know/trust your opponent...
Usage is a follows:
UNSORT [FILENAME.TXT]
Where FILENAME.TXT is the name of any text file. Unsort will then rearrange
the lines of that file in random order and output the result to standard
output (typically the screen).
For example, to create a random list of the 52 normal playing cards contained
in the sample file CARDS.TXT you simply type:
UNSORT CARDS.TXT
To send the results to a file, simply use the redirection symbol:
UNSORT CARDS.TXT > DEAL.TXT
This will send the "shuffled" deck to a file called DEAL.TXT.
Unsort should be making it's way by email to all registered users of my
OverPower deckbuilding software, OverLord. It should also show up shortly at:
ftp.uwp.edu in the directory /pub/incoming/games/cards (to later probably be
moved to: /pub/msdos/games/cards)