TubeWhackOMatic (release 2)
---------------

A 'Tubewhack' is any word or sequence of letters where there is only one tube
station which *does not* contain any of its component letters.  For example,
and most notoriously, the only station to not contain any letters of the word
'mackerel' is St. John's Wood.  (As this program reveals, that is in fact
rather more than is necessary.)

This is a simple program which generates a list of all the stations on the
London Underground, and whether or not they may be Tubewhacked, and all of
the shortest combinations of letters which will do so.

You can use these letters to make proper tabloid-friendly words, as long as
you use all of the letters given and doesn't use any of the letters which
occur in the station. (Other combinations may exist which don't use all
letters given, but they will be longer.)

Notes on using this program:

You will probably find it easier to run this program in a TaskWindow.  Either
press Ctrl-F12 and shift-drag the 'Tubewhack' file into the window, or (in
StrongED at least) you can open the program and press Ctrl-F10 to start a new
TaskWindow with the program running in it.

Be patient - some stations take a while.  Don't worry, it hasn't crashed.
(Neasden seems particularly stubborn, for some reason.)

A 'tube station', in this program, is defined as any station which is served
by one or more London Underground lines (i.e. not Overground and not DLR).

You can easily add or remove stations by editing the list of DATA statements
at the end of the BASIC file.  The only requirement for the list is that it
should be terminated by a null string.

The East London line is NOT counted as a tube line.

The boring bits:

This program was written by Martin Bazley on a boring Wednesday, 5th May
2010.

Release 2 finished on Thursday 15th September 2011.  Changes: corrected "Key
Gardens" and added Canning Town (which was missing!).  Now outputs all
possible Tubewhacks instead of just one, and guarantees only to give the
shortest possible letter sets.  Considerably more sane and readable code.

My email address is:

mailto:martin@bazleyfamily.co.uk

Snail mail is:

Martin Bazley
Flat 8
349 North End Road
Fulham
London
SW6 1NN
ENGLAND

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.



For more complete and utter ruminant faecal matter like this, visit:

http://kingfishercorner.eu