lib/just_chess/pieces/king.rb in just_chess-0.1.0 vs lib/just_chess/pieces/king.rb in just_chess-1.0.0

- old
+ new

@@ -45,10 +45,10 @@ def castle(square, game_state) rooks = game_state.squares.occupied_by_piece(Rook).occupied_by_player(player_number).unmoved() if has_not_moved? && rooks.any? _squares = rooks.map do |s| - vector = Vector.new(square, s) + vector = BoardGameGrid::Vector.new(square, s) x = square.x + (2 * vector.direction.x) y = square.y game_state.squares.find_by_x_and_y(x, y) end \ No newline at end of file