What's on your Ctrl + V?

Discussion in 'Random' started by Deleted member 2669, 28 Sep 2012.

  1. Mystia the Schnitzel Delivery Guy

    package springerproblem;
    public class SpringerProblem {
    static int brett[][] = null;
    static int zugnummer;
    static String way;
    static public void initBrett(int i, int j)
    {
    brett = new int[j];
    for (int x=0;x<i;x++)
    for (int y=0;y<j;y++)
    brett[x][y]=0;
    }
    static public void printBrett()
    {
    for (int i=0;i<brett.length;i++)
    {
    for (int j=0;j<brett.length;j++)
    System.out.print(String.format(" %02d", brett[j]));
    System.out.println();
    }
    System.out.println();
    }
    static boolean isFinished()
    {
    for (int i=0;i<brett.length;i++)
    {
    for (int j=0;j<brett.length;j++)
    if (brett[j]==0) return(false);
    }
    return(true);
    }
    static public void solveJumpers(int x, int y, int i, int j)
    {
    if ((x < 0) || (y<0)) return;
    if ((x >= i) || (y>=j)) return;
    if (brett[x][y]>0) return;
    brett[x][y]=++zugnummer;
    way += " ("+x+"/"+y+")";
    solveJumpers(x+2,y-1,i,j); // Rechts oben
    solveJumpers(x+1,y-2,i,j);
    solveJumpers(x+2,y+1,i,j); // Rechts unten
    solveJumpers(x+1,y+2,i,j);
    solveJumpers(x-2,y-1,i,j); // Links oben
    solveJumpers(x-1,y-2,i,j);
    solveJumpers(x-2,y+1,i,j); // Links unten
    solveJumpers(x-1,y+2,i,j);
    }
    public static void main(String[] args) {
    int x=4, y=4;
    initBrett(x,y);
    printBrett();
    way=""; zugnummer=0;
    solveJumpers(0,0,x,y);
    printBrett();
    if (isFinished())
    {
    System.out.println("Es wurde folgende Lösung gefunden:");
    System.out.println("\t"+way);
    }
    }
    }
    Yep, that was on my CTRL+V :V
     
  2. Nirah I'm bad at videogames

  3. nlspeed Rex Omnium Imperarum

    For me it is:

    Code:
                <TechYieldChanges>
                    <TechYieldChange>
                        <PrereqTech>TECH_GUILDS</PrereqTech>
                        <TechYields>
                            <iYield>0</iYield>
                            <iYield>1</iYield>
                            <iYield>0</iYield>
                        </TechYields>
                    </TechYieldChange>
                    <TechYieldChange>
                        <PrereqTech>TECH_CHEMISTRY</PrereqTech>
                        <TechYields>
                            <iYield>0</iYield>
                            <iYield>1</iYield>
                            <iYield>0</iYield>
                        </TechYields>
                    </TechYieldChange>
                </TechYieldChanges>
     
  4. Late in the game he starts saying niggas all the time.
     
  5. Bagman Some cunt on the internet

  6. the Spanish Inquisition
    For some reason its my ctrl+V
    No one expected this
     
  7. Gaw discord is my friend now

    [​IMG]
     
    Last edited by a moderator: 28 Dec 2016
  8. Mystia the Schnitzel Delivery Guy

  9. SirLaggy The Pan Man

  10. Dan Chief Detective at GM Police HQ - Jagex #1 Fan!

    • Optimistic Optimistic x 2
    • Agree Agree x 1
    • List
  11. Vallun I don't take drugs I just take naps.

    Skele joined the room.
     
    • Optimistic Optimistic x 1
    • List
  12. Mr.Bam Praise the sun!

    not playing by the rules
     
  13. Rioter Mad man box wearing lunatic for President

    KHW6N-XXXXX-F6PDQ-XXXXX-36667


    That was a windows key, which I've masked out. I'm not giving you fools a free Windows 8 key that easlily
     
  14. nlspeed Rex Omnium Imperarum

    Eh, I'll redirect you to the Slothbox because of privacy.
     
  15. Bagman Some cunt on the internet

     
  16.  
  17. Falsey John, the Goldfish: Never Forgotten

    I don't think people are getting the point of this thread...

    But yeah, I had a horrible moment the other evening. I was talking to a girl from one of my classes, when I accidentally pasted in a news-story I linked to Walton into the fb chat with her. It was perfectely fine, until I took a moment to think of all the dodgy 4chan shit I send Walton on a nightly basis...
     
  18. Rioter Mad man box wearing lunatic for President

    Xs9yAALqiN
     
    • Informative Informative x 1
    • Creative Creative x 1
    • List
  19. ima Bean Go ham or go home.

    • Like Like x 1
    • Funny Funny x 1
    • List
  20. imFree (╯°□°)╯︵ ┻━┻

  21. Magy da Silva
     

Users Viewing Thread (Users: 0, Guests: 0)