Advertisement
Guest User

Untitled

a guest
Aug 10th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. //intelPlayer.java
  2. public abstract class intelPlayer extends Player
  3. {
  4.     protected int rangeBottom;
  5.     protected int rangeTop;
  6.     public intelPlayer()
  7.     {
  8.         super();
  9.         this.rangeBottom=0;
  10.         this.rangeTop=Game.RANGE;
  11.     }
  12.     public int getTop()
  13.     {
  14.         return this.rangeTop;
  15.     }
  16.     public int getBottom()
  17.     {
  18.         return this.rangeBottom;
  19.     }
  20.     public void setTop(int num)
  21.     {
  22.         this.rangeTop=num;
  23.     }
  24.     public void setBottom(int num)
  25.     {
  26.         this.rangeBottom=num;
  27.     }
  28.     public abstract int guessNumber();
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement