CubeScript

1 program Added 2026-02-27T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Cube Script
Provenance: commit 04dc3669b1 · authored 2026-02-27T20:54:01+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Pine Script (0.38)ReScript (0.37)ChoiceScript (0.36)ChaiScript (0.33)ChatScript (0.33)

LLM-contributed programs

FizzBuzz

Provenance: commit 04dc3669b1 · authored 2026-02-27T20:54:01+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.cfg · license: GNU FDL · added: 2026-02-27T10:00:00Z
// FizzBuzz in CubeScript (Sauerbraten scripting language)
alias fizzbuzz [
    loop i 20 [
        local n
        n = (+ $i 1)
        if (&& (= (mod $n 3) 0) (= (mod $n 5) 0)) [
            echo "FizzBuzz"
        ] [
            if (= (mod $n 3) 0) [
                echo "Fizz"
            ] [
                if (= (mod $n 5) 0) [
                    echo "Buzz"
                ] [
                    echo $n
                ]
            ]
        ]
    ]
]

fizzbuzz

Contribute — propose a file extension

Tell us where to find evidence about CubeScript (mapped to pl/cubescript). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/CubeScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Cubed Cubestate →