[bugfix] - avoid create new instance of RobotEngine on every command
This commit is contained in:
parent
435c48713b
commit
516eb6a4eb
@ -19,8 +19,9 @@ public class LoopingConsole {
|
|||||||
|
|
||||||
printUsageBanner();
|
printUsageBanner();
|
||||||
|
|
||||||
while (true) {
|
|
||||||
RobotEngine robotEngine = new RobotEngine();
|
RobotEngine robotEngine = new RobotEngine();
|
||||||
|
|
||||||
|
while (true) {
|
||||||
System.out.print("> ");
|
System.out.print("> ");
|
||||||
String input = br.readLine();
|
String input = br.readLine();
|
||||||
robotEngine.commandBot(input);
|
robotEngine.commandBot(input);
|
||||||
|
Loading…
Reference in New Issue
Block a user