diff --git a/TooLargeTooSmall.java b/TooLargeTooSmall.java index 4d45abf..9cd0019 100644 --- a/TooLargeTooSmall.java +++ b/TooLargeTooSmall.java @@ -17,8 +17,17 @@ public TooLargeTooSmall(Integer seed) { } public Integer guess(Integer g) { - - return chosenNum; + if ( chosenNum > g ){ + return -1;} + else if + (chosenNum < g){ + return 1;} + else { + return 0;} + + + + } } \ No newline at end of file diff --git a/package.bluej b/package.bluej index abc5ce7..4a7b9bd 100644 --- a/package.bluej +++ b/package.bluej @@ -2,18 +2,18 @@ dependency1.from=TooLargeTooSmallTest dependency1.to=TooLargeTooSmall dependency1.type=UsesDependency -editor.fx.0.height=767 -editor.fx.0.width=1150 -editor.fx.0.x=448 -editor.fx.0.y=120 +editor.fx.0.height=643 +editor.fx.0.width=835 +editor.fx.0.x=47 +editor.fx.0.y=73 objectbench.height=101 -objectbench.width=461 +objectbench.width=776 package.divider.horizontal=0.6 package.divider.vertical=0.8007380073800738 package.editor.height=427 -package.editor.width=674 -package.editor.x=220 -package.editor.y=143 +package.editor.width=682 +package.editor.x=200 +package.editor.y=106 package.frame.height=600 package.frame.width=800 package.numDependencies=1