 
 #myPiece = new Pawn
 #console.log myPiece.pointValue()
+
+# deibTest
+console.log("---------------")
+deibGame = new Game
+deibGame.deibTest()
+deibGame.log()

		# Check if the pawn can capture a piece.
		if game.inBounds( x-1, y+movement )
			enemy = game.get( x-1, y+movement )
			if not (enemy instanceof BlankPiece)
				if @color != enemy.color
					moves.push( [x-1, y+movement] )
		if game.inBounds( x+1, y+movement )
			enemy = game.get( x+1, y+movement )
			if not (enemy instanceof BlankPiece)
				if @color != enemy.color
					moves.push( [x+1, y+movement] )

		# DEBUG
		i = 0
		while i < moves.length
			console.log( moves[i] )
			i++
		return moves

class Knight extends Piece

			@set(xy[0], xy[1], "p")


	deibTest: ->
		@board =
		for y in [0..7]
			for x in [0..7]
				new BlankPiece true
		@set(4,4,"q")
		@set(6,6,"p")
		@set(2,2,"p")
		@set(6,2,"p")
		@set(2,6,"p")


# some tests
