Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HelloWorld{
- public static void main(String []args){
- //this should be in game class??
- ArrayList<String> guessH = new ArrayList<String>();
- ArrayList<Pegs> pegH = new ArrayList<Pegs>(); //not sure if this should be pegs, it should be wherever this stuff is stored
- //find a valid guess:
- String validGuess = new String();
- guessH.add(validGuess);
- //let's print something beautiful!
- historySize = totalGuesses - triesLeft;
- System.out.println("Guess " + "Black Pegs " + "White Pegs " );
- (for int ik = 0; k < historySize; k++)
- {
- System.out.println(guessH.get(k) + " " + pegH.get(k).getBlackPegs() + " " + pegH.get(k).getWhitePegs());
- }
- }
- //these methods should be at the end of "Peg" class
- public static int getBlackPegs(int blackPegs)
- {
- return blackPegs;
- }
- public static int getBlackPegs(int whitePegs)
- {
- return whitePegs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement