Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Numbers #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions TooLargeTooSmall.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ public TooLargeTooSmall(Integer seed) {
}

public Integer guess(Integer g) {

return chosenNum;
if (g > chosenNum){
return 1;
}else if ( g < chosenNum) {
return -1;
}else {
return 0;
}

}
}
30 changes: 18 additions & 12 deletions package.bluej
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@
dependency1.from=TooLargeTooSmallTest
dependency1.to=TooLargeTooSmall
dependency1.type=UsesDependency
editor.fx.0.height=767
editor.fx.0.height=702
editor.fx.0.width=1150
editor.fx.0.x=448
editor.fx.0.y=120
objectbench.height=101
objectbench.width=461
editor.fx.0.x=110
editor.fx.0.y=25
objectbench.height=100
objectbench.width=776
package.divider.horizontal=0.6
package.divider.vertical=0.8007380073800738
package.editor.height=427
package.editor.width=674
package.divider.vertical=0.8003731343283582
package.editor.height=422
package.editor.width=683
package.editor.x=220
package.editor.y=143
package.frame.height=600
package.frame.width=800
package.numDependencies=1
package.numTargets=2
package.numTargets=3
package.showExtends=true
package.showUses=true
project.charset=UTF-8
readme.height=58
readme.height=60
readme.name=@README
readme.width=47
readme.width=48
readme.x=10
readme.y=10
target1.association=TooLargeTooSmallTest
Expand All @@ -38,6 +38,12 @@ target2.height=50
target2.name=TooLargeTooSmallTest
target2.showInterface=false
target2.type=UnitTestTargetJunit4
target2.width=140
target2.width=160
target2.x=160
target2.y=120
target3.height=70
target3.name=README.md
target3.type=TextTarget
target3.width=120
target3.x=70
target3.y=10