Groovy web console

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

check if player in zone

Published 8 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)