Lister feedback, a new book, Lua, Luarocks, and much more.
`
--[[ GNU All-Permissive License
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
https://www.gnu.org/licenses/license-list.en.html ]]--
-- main.lua
vw = 720 vh = 480
function love.load() -- loads once at launch love.window.setMode(vw,vh,{resizable=false, vsync=false}) love.window.setTitle('Dice') math.randomseed(os.time()) computer = math.random(1,20) player = math.random(1,20) end
function love.draw() love.graphics.setColor(255, 255, 255) if player > computer then love.graphics.printf("Player wins!",0,vh0.5,vw0.5, 'center') else love.graphics.printf("Computer wins!",0,vh0.5,vw0.5, 'center') end end
`
shasum -a256=2ba3285a75a8671818cf126a0d0ff5683af1fa8e897e81e18658f37d48581184