Advertisement
aidandeno

Checkers - Checker

Sep 8th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. /**
  2. * Objects of Checker class are created here. Each checker is either red or black
  3. * and has been kinged or not. Both attributes have package access.
  4. *
  5. * @author
  6. * Date: 07/09/2014
  7. */
  8.  
  9. public class Checker
  10. {
  11.     boolean isRed; //colour of checker object.
  12.     boolean isKing; //true if checker has been kinged.
  13.     private int row;
  14.     private int col;
  15.    
  16.  
  17.     public Checker(boolean isRed, boolean isKing)
  18.     {
  19.         this.isRed = isRed;
  20.         this.isKing = isKing;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement