  (piece          ; The Peg must be redefined for handicap boards, to eliminate all references to swapping.
    (name Peg)
    (image White "..\..\..\images\Twixt\high24\pegGold.BMP" "..\..\..\images\Twixt\high24\pegGoldround.BMP"
           Black "..\..\..\images\Twixt\high24\pegBlack.BMP" "..\..\..\images\Twixt\high24\pegBlackround.BMP")
    (help "Click on a peg to autolink to it and enter Manual mode.")
    
    (drops
    
      (move-type AutolinkPeg)  ; click on an existing peg to drop another peg of
      (                        ; the same color there, and as a side-effect,
        (getinfo)              ; add all legal links to that peg and enter manual mode.
        (verify friend?)
        (verify (piece? Peg))
        mark
        A2                      
        (if (in-zone? borders)                 ; current player = Black
          (verify (not-flag? WhiteManualMode))
          (set-flag BlackManualMode true)
         else                                  ; current player = White
          (verify (not-flag? BlackManualMode))
          (set-flag WhiteManualMode true)      ; clicking on a link enters manual mode.
        )
        back
        (tryall) ; keep the peg where it is and perform autolinking to it.
      )
    
      (move-type PlacePeg)
      (
        (getinfo)
        (verify (or (in-zone? holes) (in-zone? borders)))
        (verify empty?)
        mark
        A2                      
        (if (in-zone? borders)                 ; current player = Black
          (verify (not-flag? WhiteManualMode))
          (set-flag BlackManualMode false)
         else                                  ; current player = White
          (verify (not-flag? BlackManualMode))
          (set-flag WhiteManualMode false)     ; placing a peg ends any manual move.
        )
        back
          (tryall) ;  place the peg in this hole and perform autolinking for this peg
      )
    )
  )
  
  (piece              ; The swap piece is not needed for handicap boards, but must be redefined to avoid references to "reflect".
    (name swappiece)
    (image White "..\..\..\IMAGES\Twixt\high24\swap.bmp" "..\..\..\IMAGES\Twixt\high24\swapround.bmp"
           Black "..\..\..\IMAGES\Twixt\high24\swap.bmp" "..\..\..\IMAGES\Twixt\high24\swapround.bmp")
  )
