Gamemaster
General
Game
Playing

Style Checker Overview


Stylechecker is a web page that allows you to specify a rule sheet, a Javascript style sheet, and a game state and then see the results of applying the specified style sheet to the specified state. This is recommended before trying to use the style sheet in playing games.

Stylechecker can be found here .

Stylechecker allows you to enter a rule sheet, a Javascript style sheet, and a game state. The rule sheet is optional; it is needed only to provide view definitions used by the style sheet. If supplied, the rule sheet must be written in standard GDL. The style sheet must be written in Javascript. The code must define a javascript function called renderstate that takes a state as argument and produces a DOM fragment as result. (If you do not specify a style sheet, the system reverts to standard display for states.) The state must be written in standard GDL. You can navigate through the state using the scroll bar in the text area. Note that you can change the state if you like. Once you have supplied these arguments, you can then see the result by pressing the Render State button.