 	blackSymbol: "\u265E"
 	whiteSymbol: "\u2658"
 
+	getMoves: (x,y,game) ->
+		moves = []
+		# loops over entire board, less efficient but easier to read
+		# x and y for board
+		for yb in [0..7]
+			for xb in [0..7]
+				unless game.get(xb,yb).isWhite == @isWhite
+					# x and y offsets
+					xo = Math.abs (x - xb)
+					yo = Math.abs (y - yb)
+					if (xo == 1 && yo == 2) || (yo == 1 && xo == 2)
+						moves.push( [xb,yb] )
+
+		return moves
+
 class Bishop extends Piece
 	name: "Bishop"
 	value: 3

#myGame.set(1,3, "f")

#myGame.importFEN( "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" )
myGame.setup("classic")
#myGame.test()
myGame.log()
myGame.getMoves(3,1)
#console.log myGame.get(1,2)
#console.log myGame.get("a1")
#

			for x in [0..7]
				new BlankPiece true

		@set(4,4,"n")
		@set(3,2,"K")
		@set(2,3,"k")
		moves = @getMoves(4,4)
		for xy in moves
			@set(xy[0], xy[1], "p")


	deibtest: ->
		@board =
