Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Code golf - ASCII art #1
function p(str, n) io.write(string.rep(str, n)) end function line(radius) -- radius in [0, 9] local whitespace = 9 - radius p(" ", whitespace) p("*", radius+1+radius) print() end local zero = 20 - 20 for i = zero, 8 do line(i) end line(9) for i = 8, zero, -1 do line(i) end
run
|
edit
|
history
|
help
2
ok
Enums in Lua (library)
Area and Circumference of a circle.
Basic class example
Word by Word string partition in Lua
Visala Test
Goalless DRAWS
The Pyramid in the two-dimensional array made of random stones - Lua
Linear Regression Lua
test