playing.web.playscript

Functions called from py-script tags of the play.html page

This module is imported by PyScript when reading the <py-script> tag in environ/frontend/play.html.

Importing the __init__ as nimgame enables functions in this module to use the package from local sources. This way all public objects of the package (like the Nim class) becomes accessible, as if the package was imported from PyPi.

playing.web.playscript.main_dynamics()[source]

Set up and initiate the game in the web browser