Tabulate by Zed Lopez

I just pushed an extension called Tabulate to the Friends of I7 repo. It adds a not-for-release ‘tabulate’ command that lets you request a dump of table contents during play (via the showme the contents of phrase.)

"Table of Stats"

Include Tabulate by Zed Lopez.

Lab is a room.

Table of Stats
name    x   y
"foo"   1   2
"bar"   5   9

Test me with "tabulate table of stats / tabulate stats".

>test me
(Testing.)

>[1] tabulate table of stats
Table of Stats
(row 1)  | foo | 1 | 2 |
(row 2)  | bar | 5 | 9 |

>[2] tabulate stats
Table of Stats
(row 1)  | foo | 1 | 2 |
(row 2)  | bar | 5 | 9 |

One night I had remembered there was some provision to do this, and had conflated it with something the ‘showme’ command could do, kind of like the poster of Seeing the contents of a table here. Needing to put the phrase in your code and re-compile when you want the output is a pain, so ta-da, now there really is a command to do it.

5 Likes

This should make debugging considerably less painful. Thanks.

-Wade

1 Like

Dang, I was actually looking for a tool like this one when I was testing my last game. Since I always forget about bookmarks in Discourse, I’m commenting so I’ll be able to find this again. Thanks for linking it here!

1 Like