User:DavidKendal/Mornington

From Esolang
Jump to navigation Jump to search

Mornington is a programming language which appears to be playing a game of Mornington Crescent.

Syntax

All lines must be preceded by an identifier of who is playing the game. No player may play twice in a row. One 'player', Humphrey, is actually a kind of adjudicator/preprocessor and may rule moves as invalid or insist on visits to certain stations. Each program must be started by Humphrey saying 'Go!' and ended with some player reaching Mornington Crescent. Here is an example of a Hello World program in Mornington:

Humphrey: Go!
Paul: I move out of the shed and perform a triple-backwards shunt procedure to Earl's Court.
Stephen: I use the east-west banking rule with a halfway coupler to make a high-speed run to Kingsbury.
Jonathan: Taking care not to run a red light south of the siding loop, I head off to Southwark with a token signal switch stop.
Paul: I'm off to Putney Bridge, via the cross-line shortcut method.
Stephen: And I'm going to head without diversion to Mornington Crescent.

Anybody with a three-digit IQ can see clearly what this code's purpose and syntax is. I shall therefore bore you no longer with documentation, and instead refer you to NF Stovold’s Mornington Crescent: Rules and Origins, sadly out-of-print. Ask your local second-hand bookstore.