Jakt

1 program Added 2025-10-28T16:00:06Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 2781ef0e92 · authored 2025-10-28T17:00:06+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

3 sources · pl_id: pl/jakt
LLM (this repo) · 1PldbRosettacode

Related languages

Japt (0.33)Jank (0.20)Java (0.20)Just (0.20)PIKT (0.20)

LLM-contributed programs

Guessing Game

Provenance: commit 2781ef0e92 · authored 2025-10-28T17:00:06+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.jakt · license: BSD-2-Clause · added: 2025-10-28T16:00:06Z
import jakt::random
import jakt::io { print, println, read_line }
import jakt::string { String }
import jakt::utilities { to_string }
import jakt::error { Error }
import jakt::platform { arch, os }

function main() {
    println("Guess the number!")

    let secret_number = random::random_in_range(1, 101)

    loop {
        print("Please input your guess: ")
        let mut line = read_line()
        if line.is_empty() {
            break
        }
        let guess_or_error: Error? | u64 = line.to_int()

        match guess_or_error {
            error: Error => {
                println("{}", error)
                continue
            }
            guess: u64 => {
                println("You guessed: {}", guess)

                if guess < secret_number {
                    println("Too small!")
                } else if guess > secret_number {
                    println("Too big!")
                } else {
                    println("You win!")
                    break
                }
            }
        }
    }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Jakt (mapped to pl/jakt). 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/Jakt/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← JAJL JAL →