Varp mathematics

Discussion in 'Developer Support' started by Hazard, May 31, 2015.

  1. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
    Edit: It was early in the morning; I zero padded the end instead of the beginning of the string..
     
    #1 Hazard, May 31, 2015
    Last edited: May 31, 2015
  2. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,561
    Likes Received:
    1,087
    I see the pattern in the binary. ;)
    --- Double Post Merged, May 31, 2015, Original Post Date: May 31, 2015 ---
    Hint:

    00 = 0 detections
    01 = 1 detection
    10 = 2 detections
    11 = 3 detections
     
  3. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
    Well I see patterns in all 3 of them but it's not consistent, for example the length of the binary string varies.

    Yea I already reached the point where I realized 00 = none, 01 = 1, 10 = 2 and 11 = 3 detections :p The thing I can't solve is to find out which clan is busted and which one isn't, when given a binary string.
     
  4. sothatsit

    Joined:
    Mar 14, 2015
    Messages:
    24
    Likes Received:
    3
    Just so you know, you can convert binary to int in java using

    Integer.parseInt("<binary>",2);

    eg.
    Integer.parseInt("00", 2) = 0
    Integer.parseInt("01", 2) = 1
    Integer.parseInt("10", 2) = 2
    Integer.parseInt("11", 2) = 3
     
    Arbiter and Hazard like this.
  5. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,561
    Likes Received:
    1,087
    Note to future varpers: binary is right padded. ;)
     
    Hazard likes this.

Share This Page

Loading...