# File lib/libpplayer.rb, line 78
  def to_bitstring
    (@friend_pull * 4).to_i.to_bitstring(4).gray_encode +
      (@enemy_pull * 4).to_i.to_bitstring(4).gray_encode +
      (@base_pull * 4).to_i.to_bitstring(4).gray_encode +
      @safe_bonus.to_bitstring(4).gray_encode +
      @capture_bonus.to_bitstring(4).gray_encode
  end