Groovy web console

subscribe to the feed Subscribe
to this
site
check if player in zone (via #groovywebconsole)
tweet this snippet Tweet
this
script

check if player in zone

Published 5 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
x0 = 10
f = { x -> x**3 }

isGood = { x -> f(x0) > f(x) }

println isGood(9)
println isGood(-5)
println isGood(10)