@name FailCake Games screen
@inputs C:wirelink Down Up Value
@outputs Chosen
@persist 
@trigger all

if (first()) {C:writeCell(2041,1)}
C:writeString("Who is Wining?",1,0,9,90)

Value-=Down
Value+=Up
Value=clamp(Value,0,3)

if (Value=>10) {V1=60 Chosen=1}
else {V1=0}
if (Value=>20) {V2=60 Chosen=2}
else {V2=0}
if (Value=>30) {V3=60 Chosen=3}
else {V3=0}
if (Value=>40) {V4=60 Chosen=4}
else {V4=0}

C:writeString("Wolf",2,3,999,V1)
C:writeString("Theborins",2,4,999,V2)
C:writeString("Panic",2,5,999,V3) 
C:writeString("FailCake =D",2,6,999,V4) 
