Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.10 KB | None | 0 0
  1. public class HelloWorld{
  2.  
  3.      public static void main(String []args){
  4.         //this should be in game class??
  5.         ArrayList<String> guessH = new ArrayList<String>();
  6.         ArrayList<Pegs> pegH = new ArrayList<Pegs>();  //not sure if this should be pegs, it should be wherever this stuff is stored
  7.        
  8.        
  9.    
  10.         //find a valid guess:
  11.         String validGuess = new String();
  12.         guessH.add(validGuess);
  13.        
  14.         //let's print something beautiful!
  15.        
  16.         historySize = totalGuesses - triesLeft;
  17.        
  18.         System.out.println("Guess       " + "Black Pegs  " + "White Pegs   " );
  19.         (for int ik = 0; k < historySize; k++)
  20.         {
  21.         System.out.println(guessH.get(k) + "            " + pegH.get(k).getBlackPegs() + "            " + pegH.get(k).getWhitePegs());
  22.         }
  23.      }
  24.      //these methods should be at the end of "Peg" class
  25.      
  26.      public static int getBlackPegs(int blackPegs)
  27.      {
  28.          return blackPegs;
  29.      }
  30.      
  31.      public static int getBlackPegs(int whitePegs)
  32.      {
  33.          return whitePegs;
  34.      }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement