Example Uses

The Dogelog player runs not only in the browser. There are currently command line versions available for the JavaScript platform and the Python platform. These command line versions come with a colored top-level that can be easily started as soon as one has installed a JavaS-cript runtime respectively a Python runtime.

A typical command line JavaScript runtime is NodeJS. This JavaScript runtime uses the V8 JavaScript Engine from the Chrome browser. Similar like the browser JavaScript has evolved and is now available as common JavaScript and module JavaScript. Different versions of NodeJS might support these variants to different degrees.

 

Picture 2: Console Game in NodeJS 12.x WSL2

 

Picture 3: Console Game in NodeJS 18.x Windows 10

For more details on the Dogelog player variants and their support see chapter “cross” and the two sections “main” and “mainpy”. In the above we used dogelog_sync.js for an older NodeJS version and dogelog.mjs for a newer NodeJS version. What we didn’t show that the console game can be also run in Python.

Kommentare