This is a repository created for sharing the NumberGuessingGame
Tools Used:
- Maven 3.3.9
- Eclipse 4.5.2
- JDK 1.8
- JUnit
Installation Steps:
- Download the project to your local.
- Import the project into eclipse.
- Right click on pom.xml --> run configuration --> maven configuration
- Click browse workspace and choose the base directory as the project
- Enter 'package' in goals
- Click RUN
- You should see BUILD SUCCESS message in the console.
Locations:
- Jar file will be located in the below folder path /NumberGuessingGame/target/
- JUnit Test reports will be located in the below folder path /NumberGuessingGame/target/surefire-reports/
Sample JUnit Test Results:
Running org.example.AppTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.076 sec
Results : Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
Sample Game Results:
Let's start the game, guess any number and type 'ready' once you are ready.
sadf
You can only enter 'Ready' or 'Quit'!!!
ready
Is the Nunmber in your mind : 50 (You Can Say Higher/Lower/Yes)
no
You can only enter 'Higher' or 'Lower' or 'Yes'!!!
Is the Nunmber in your mind : 50 (You Can Say Higher/Lower/Yes)
higher
Is the Nunmber in your mind : 75 (You Can Say Higher/Lower/Yes)
higher
Is the Nunmber in your mind : 87 (You Can Say Higher/Lower/Yes)
lower
Is the Nunmber in your mind : 81 (You Can Say Higher/Lower/Yes)
lower
Is the Nunmber in your mind : 78 (You Can Say Higher/Lower/Yes)
higher
Is the Nunmber in your mind : 79 (You Can Say Higher/Lower/Yes)
higher
Is the Nunmber in your mind : 80 (You Can Say Higher/Lower/Yes)
yes
Hurray I did it... Do you want to play again...!!!
quit
Sorry :( you are leaving... Please come back again!!!