Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Properties in Lua
Goalless DRAWS
Map generator
Basic class example
Creating habits. Lua
W.I.P
Random Item Generator (1 year)
BasicTablePrinterV2
Visala Test
Code golf - ASCII art #1
Please log in to post a comment.