| Chapter 15: Tables |

| 15.14. Another scoring example

> To record (T - text) as achieved:
> choose row with a citation of T in the Table of Tasks Achieved;
> if there is no time entry begin;
> change time entry to the time of day;
> award (points entry) points;
> end if.

The phrase above expects to see a table like this one:

> Table of Tasks Achieved

> Points | Citation | Time
> 1 | "pride" | a time
> 3 | "anger"
> 2 | "avarice"
> 4 | "envy"
> 1 | "lust"
> 2 | "gluttony"
> 3 | "sloth"

The middle column records the tasks to be achieved, the first column records the points on offer for each: the final column, initially blank, will store the times at which the tasks are first achieved.

> Before eating, record "gluttony" as achieved.

The first time we record "gluttony" as achieved, 2 points will be awarded and the time will be logged in the Table, but on all subsequent occasions nothing will happen. So the combination of the phrase and the Table will look after a scoring system based on achieving specific goals (probably not the seven deadly sins, of course). We can, if we choose, use the same system to display a log of recent accomplishments:

> repeat through the Table of Tasks Achieved in reverse time order begin;
> say "[time entry]: [citation entry] ([points entry]).";
> end repeat.

216
| Example Goat-Cheese and Sage Chicken Implementing a FULL SCORE command which lists more information than the regular SCORE command, adding times and rankings, as an extension of the example given in this chapter.

Previous | Contents | Next