Sha256: 3cc003ba5780811e94929c449a4cb9ccdedc92ba47447a12275baa0c35b88df6

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

module Hanoi
  module Jane
    class ConstrainedTowers < RegularTowers
      extend ConstrainedStackFinder

      def initialize discs = 3
        super
        @base = 3
      end

      def ternary
        rebased
      end

      def inspect
        i = super
        i[:ternary] = i.delete :binary
        i
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanoi-jane-0.3.1 lib/hanoi/jane/towers/constrained_towers.rb