class WhitePawn

Public Class Methods

new(x,y) click to toggle source
Calls superclass method WhitePiece::new
# File lib/pawn.rb, line 84
def initialize(x,y)
  super
  @start = true
  @direction = 1
  @queen = WhiteQueen
end

Public Instance Methods

to_s() click to toggle source
# File lib/pawn.rb, line 91
def to_s
  "WP"
end