From b3fa6d08bebd914ecbeb09ff02988ea2a559fd93 Mon Sep 17 00:00:00 2001 From: aspwil Date: Mon, 2 Nov 2020 05:54:49 -0700 Subject: [PATCH] 1.0.1 commit --- src/ndballsim/Main.java | 4 +++- src/ndballsim/Simulator.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ndballsim/Main.java b/src/ndballsim/Main.java index 9df6a6a..1d22e1e 100644 --- a/src/ndballsim/Main.java +++ b/src/ndballsim/Main.java @@ -7,7 +7,7 @@ public class Main { public static void main(String[] args) { - String version = "V1.0"; + String version = "V1.0.1"; String help = "NDBall Simulator " + version + "\n" + "Commands are formated like this:\n" + "[flags] (file containing code)\n" @@ -72,6 +72,8 @@ public static void main(String[] args) { + "\n" + "SPECIAL INSTR:\n" + "E end program\n" + + "\n" + + "Check out the wiki for more info https://esolangs.org/wiki/NDBall" + ""); break; case "-log": diff --git a/src/ndballsim/Simulator.java b/src/ndballsim/Simulator.java index 7de0e55..ec7fb56 100644 --- a/src/ndballsim/Simulator.java +++ b/src/ndballsim/Simulator.java @@ -53,8 +53,8 @@ public static void run(String file, boolean doLog) { //this get a input number from the console and set the balls value to it case "%": newVal = 0; - input = in.nextLine(); System.out.print("\nPlease input a number:"); + input = in.nextLine(); try { //parse in a new vaule from command line newVal = Integer.parseInt(input); @@ -131,8 +131,8 @@ public static void run(String file, boolean doLog) { //input a char case "$": newVal = 0; - input = in.nextLine(); System.out.print("\nPlease input a char:"); + input = in.nextLine(); try { //parse in a new vaule from command line newVal = (int) input.charAt(0);