Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@


import java.util.Random;
import java.util.Scanner;

/**
* Created by iyasuwatts on 10/17/17.
*/
public class Main {

public static void main(String[] args){

Scanner scan = new Scanner(System.in);
System.out.println("Hey! Guess a mystery number: ");
int guess = scan.nextInt();

//Random random = new Random();
//int guess = random.nextInt();
//Need to create an int arr
int correctGuess = 4;
int counter = 0;
int[] hold = new int[guess];


if (correctGuess < guess) {
System.out.println("too small");
counter++;
} else if (correctGuess >= guess) {
System.out.println("too large");
counter++;
} else if (guess < correctGuess) {
System.out.println("correct guess");
}
System.out.println(counter);

}
}