Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ok
zbirsvihostalih = 0 for i=1, n do colors[i] = colors[i]-1 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 = raise(zbirsvihostalih) if myself == 1 then zbirsvih = (sol[2] + colors[2])%2 else zbirsvih = (sol[1] + colors[1])%2 end answer = (zbirsvih-zbirsvihostalih+2)%2 answer = answer+1
run
|
edit
|
history
|
help
0
Random number generation with ranges (Lua)
cases
Hand positions in a circle
W.I.P
Basic Lehmer RNG implementation using closures
Random Item Generator (1 year)
Error PCALL
1
roulette
PAID HACK PuBG