mame/quine-relay · error

can't find " << "Q#{suit[0]}" * suit.size << " to go to

Error message

can't find " << "Q#{suit[0]}" * suit.size << " to go to

What it means

Error "can't find " << "Q#{suit[0]}" * suit.size << " to go to" thrown in mame/quine-relay.

Source

Thrown at vendor/ante.rb:97

    # puts "assign #{card.inspect}"
    operands = remaining(card)
    expression(operands)
  end

  def jump(card)
    # puts "jump #{card.inspect}, pc: #{@pc.inspect}, #{@labels.inspect}"
    suit = card.suit
    while @code[@pc] && @code[@pc].rank == "K" && @code[@pc].suit == card.suit
      suit += card.suit
      @pc += 1
    end

    if instance_variable_get("@#{suit[0]}") != 0
      # puts "jumping to " << "Q#{suit[0]}" * suit.size
      if @labels[suit]
        @pc = @labels[suit]
      else
        exception("can't find " << "Q#{suit[0]}" * suit.size << " to go to")
      end
    end
  end

  def dump(card, char = nil)
    # puts "dump #{card.inspect} => "
    value = instance_variable_get("@#{card.suit}")
    if char
      if value.between?(0, 255)
        print value.chr
      else
        exception("character code #{value} is out of 0..255 range")
      end
    else
      print value
    end
  end

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at vendor/ante.rb:97 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21). Data as JSON: /api/errors/5d68b3f1809be760. Report an issue: GitHub.