Skip to content

VNOI-Admin/scratch-run

Repository files navigation

scratch-run Build Status

scratch-run is a CLI interpreter for Scratch based on scratch-vm.

scratch-run was created to judge solutions written in Scratch. It is used mainly in our official online judge VNOJ, but it can also be used separately.

scratch-run is written in Node.js and packed with pkg. No dependencies are required for running.

Installation

Prebuilt binaries are available in Releases.

Usage

scratch-run [scratch file]

For example:

scratch-run tests/echo.sb3

Type in something and it will be echoed back!

For more detailed instructions, see our wiki page.

Build Instructions

You need Node.js and npm to build.

git clone https://github.com/VNOI-Admin/scratch-run.git
cd scratch-run
npm install
npm run build

Built binaries will be saved in build directory.