Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hij
zbirsvihostalih = 0 for i=1, N do if i ~= myself then colors[i] = colors[i]-1 end end for i=1, N do if i ~= myself then zbirsvihostalih = zbirsvihostalih + colors[i] else zbirsvihostalih = zbirsvihostalih end end zbirsvihostalih = (zbirsvihostalih % 2) zbirsvih = 0 sol = {} if(zbirsvihostalih == 0) then sol = raise(false) else sol = raise(true) end if myself == 1 then if sol[2] == false then zbirsvih = colors[2]%2 else zbirsvih = (1+colors[2])%2 end else if sol[1] == false then zbirsvih = colors[1]%2 else zbirsvih = (1+colors[1])%2 end answer = (zbirsvih-zbirsvihostalih+2)%2 answer = answer+1
run
|
edit
|
history
|
help
0
Basic Lehmer RNG implementation using closures
123
Lua properties
Truly random numbers (Lua)
Weird Lua OOP Lib
PAID HACK PuBG
Enums in Lua (library)
Exponential from Two Points
مكسر
wwww