Trying to use a Java Enum in Jython but I can't figure out how to use them.
when importing I see the enum listed as BotInterface$MOVE
so I've put down the line
from amazebot2012.BotInterface import MOVE
In Java I would normally just use it as
bot.move(MOVE.FORWARD);
bot.move(MOVE.BACKWARD);
What is the Jython equivalent once I've imported it?
Trying bot.move(MOVE.FORWARD)
gives me the error:
Undefined variable from import: FORWARD