User interface and command language

The PLAYER interacts with the Zurk engine via a very simple command language presented on a text console. The PLAYER command grammar is:


playerCmd 		 := ( NAME )+ NEWLINE 

Where NAME and NEWLINE are the corresponding lexical tokens defined in Section 4.2.2.1. The first NAME token is interpreted as the PLAYER's command, while succeeding tokens are interpreted as arguments to that command. The command MUST be one of:

Note that other commonly used commands such as drop, get, quit, etc. can and should be implemented in WDL itself. The designer MAY also choose to implement additional special commands such as save, load, log, score, etc. that are not directly supportable in WDL. These MAY be implemented as special commands or by extending WDL itself.

The Zurk suite MUST provide a plain, text console (no Swing UI) interface for the PLAYER. All commands are typed in to STDIN, all normal output is displayed to STDOUT, and all ERROR/WARNING output is displayed to STDERR. The designer MAY also choose to offer a GUI interface to the engine, but the text console interface MUST be the default.

Terran Lane 2005-02-28