Skip to content

Commit

Permalink
Added exit message
Browse files Browse the repository at this point in the history
  • Loading branch information
freddycansic committed Feb 18, 2022
1 parent 0a7f612 commit afc1174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/com/tsp/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public void render () { // turn on anti aliasing
if (edges[0] == -1) { // if a full rotation was made without any swaps occurring
System.out.println("-------------------------------------------" +
"\nLOCAL MINIMUM FOUND." +
"\n-------------------------------------------");
"\n-------------------------------------------" +
"\nCTRL+C to exit.");
running = false;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion desktop/src/com/tsp/desktop/DesktopLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void main (String[] arg) {
config.title = "Travelling Salesman";
config.initialBackgroundColor = Color.WHITE;
config.samples = 3; // anti aliasing
config.forceExit = true;
config.forceExit = false;
config.resizable = false;
config.addIcon("icon_128.png", FileType.Internal);
config.addIcon("icon_32.png", FileType.Internal);
Expand Down

0 comments on commit afc1174

Please sign in to comment.