drop some libc functions, octal numerals, io.println, mem.read32

This commit is contained in:
2025-11-22 17:31:36 +01:00
parent 5a41163ca1
commit 7cffd73406
28 changed files with 165 additions and 126 deletions

View File

@@ -2,13 +2,13 @@ func main[] : I64
let answer: I64 = math.abs(math.urandom()) % 100
while true
io.print("Guess a number: ")
io.println("Guess a number: ")
let guess: I64 = io.read_stdin() |> str.trim() |> str.parse_i64()
if guess == answer
io.print("You win!")
io.println("You win!")
break
else if guess < answer
io.print("Too low!")
io.println("Too low!")
else
io.print("Too high!")
io.println("Too high!")