 
 	beforeEach ->
 		@whitePawn = new Pawn true
+		@whitePawn.hasMoved = true
 		@blackPawn = new Pawn true
+		@blackPawn.hasMoved = true
 		@board = new Board
 
 	it 'has a type', ->

		moves = @blackPawn.getMoves 1, 1, @board
		expect(moves).toContain [1, 2]
		expect(moves.length).toBe 1

		expect(typeof @blackPawn.pointValue()).toBe "number"

	it "can only move forward one or two spaces if it hasn't moved yet", ->
		@whitePawn.hasMoved = false
		moves = @whitePawn.getMoves 1, 1, @board
		expect(moves).toContain [1, 2]
		expect(moves).toContain [1, 3]
		expect(moves.length).toBe 2
		expect(@whitePawn.hasMoved).toBe false

		@blackPawn.hasMoved = false
		moves = @blackPawn.getMoves 1, 1, @board
		expect(moves).toContain [1, 2]
		expect(moves).toContain [1, 3]
		expect(moves.length).toBe 2
		expect(@blackPawn.hasMoved).toBe false

	it "can only move forward one space if it has moved", ->
		moves = @whitePawn.getMoves 1, 1, @board
		expect(moves).toContain [1, 2]
		expect(moves.length).toBe 1

		moves = @blackPawn.getMoves 1, 1, @board
		expect(moves).toContain [1, 2]
		expect(moves.length).toBe 1
