Skip to content

Commit

Permalink
mo app doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Radcliffe committed May 7, 2009
1 parent 491bc08 commit d215d8f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/bishop.rb
@@ -1,3 +1,4 @@
# move_directions :diagonal, :limit => :none
class Bishop < Piece
move_directions :diagonal, :limit => :none

Expand Down
1 change: 1 addition & 0 deletions app/models/king.rb
@@ -1,3 +1,4 @@
# The Daddy-O, move_directions :diagonal, :straight, :limit => 1
class King < Piece
move_directions :diagonal, :straight, :limit => 1

Expand Down
1 change: 1 addition & 0 deletions app/models/knight.rb
@@ -1,3 +1,4 @@
# One Wild and Crazy Horse, moves "2 in one direction and 1 in the other"
class Knight < Piece
@move_vectors = [[-1,2], [1,2], [2,1], [2,-1], [-1,-2], [1,-2], [-2,-1], [-2,1]]
def initialize(side, discriminator=nil)
Expand Down
1 change: 1 addition & 0 deletions app/models/queen.rb
@@ -1,3 +1,4 @@
# Her majesty ! move_directions :diagonal, :straight, :limit => :none
class Queen < Piece
move_directions :diagonal, :straight, :limit => :none

Expand Down
1 change: 1 addition & 0 deletions app/models/rook.rb
@@ -1,3 +1,4 @@
# move_directions :straight, :limit => :none
class Rook < Piece
move_directions :straight, :limit => :none

Expand Down

0 comments on commit d215d8f

Please sign in to comment.