package com.civica.grads.boardgames.model;

import java.util.ArrayList;

/**
 * TurnRecord class that holds an ArrayList of MoveRecord objects
 * 
 * @author team-mattdamon, david getter
 * 
 */

public class TurnRecord {
	
	private ArrayList<MoveRecord> moveRecords;
	private int countersTakenThisTurn;
	
	public TurnRecord() {
		
		moveRecords = new ArrayList<>();
		countersTakenThisTurn = 0;
	}

	public int getCountersTakenThisTurn() {
		
		return countersTakenThisTurn;
	}

	public void setCountersTakenThisTurn(int countersTakenThisTurn) {
		
		this.countersTakenThisTurn = countersTakenThisTurn;
	}
	
	public void addMoveRecord(MoveRecord moveRecord) {
		
		moveRecords.add(moveRecord);
	}
	
	public ArrayList<MoveRecord> getMoveRecordArrayList() {
		
		return moveRecords;
	}
	
}

@@ -688,16 +688,146 @@
 ecord);%0A
+%09%09%0A%09%09// if counter taken then increment countersTakenThisTurn%0A%09%09if(moveRecord.isCounterTaken()) %7B%0A%09%09%09countersTakenThisTurn++;%0A%09%09%7D%0A
 %09%7D%0A%09%0A%09pu

Increment countersTakenThisTurn if needed