S22Saenke-Slagskibe_Main/battleship_game_board/ild.pde
void ild() {
  /////////////////////////////////////////////////////////////    A FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //A1 fire
  if (a1==3) {
    //          eksempel jeg snakker om i linje 125;          PImage fire=loadImage("fire.png");
    fire.resize(130, 0);
    image(fire, 80, 230);
  }
  //A2 fire
  if (a2==3) {
    //          eksempel jeg snakker om i linje 125;          PImage fire=loadImage("fire.png");
    fire.resize(130, 0);
    image(fire, 80, 230+(75*1));
  }
  //A3 fire
  if (a3==3) {
    //          eksempel jeg snakker om i linje 125;          PImage fire=loadImage("fire.png");            ...osv
    fire.resize(130, 0);
    image(fire, 80, 230+(75*2));
  }
  //A4 fire
  if (a4==3) {

    fire.resize(130, 0);
    image(fire, 80, 230+(75*3));
  }
  //A5 fire
  if (a5==3) {

    fire.resize(130, 0);
    image(fire, 80, 230+(75*4));
  }
  //A6 fire
  if (a6==3) {
    fire.resize(130, 0);
    image(fire, 80, 230+(75*5));
  }
  //A7 fire
  if (a7==3) {
    fire.resize(130, 0);
    image(fire, 80, 230+(75*6));
  }
  //A8 fire
  if (a8==3) {
    fire.resize(130, 0);
    image(fire, 80, 230+(75*7));
  }
  //A9 fire
  if (a9==3) {
    fire.resize(130, 0);
    image(fire, 80, 230+(75*8));
  }
  //A10 fire
  if (a10==3) {
    fire.resize(130, 0);
    image(fire, 80, 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    B FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //B1 fire
  if (b1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230);
  }
  //B2 fire
  if (b2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*1));
  }
  //B3 fire
  if (b3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*2));
  }
  //B4 fire
  if (b4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*3));
  }
  //B5 fire
  if (b5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*4));
  }
  //B6 fire
  if (b6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*5));
  }
  //B7 fire
  if (b7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*6));
  }
  //B8 fire
  if (b8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*7));
  }
  //B9 fire
  if (b9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*8));
  }
  //B10 fire
  if (b10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*1), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    C FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //C1 fire
  if (c1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230);
  }
  //C2 fire
  if (c2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*1));
  }
  //C3 fire
  if (c3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*2));
  }
  //C4 fire
  if (c4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*3));
  }
  //C5 fire
  if (c5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*4));
  }
  //C6 fire
  if (c6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*5));
  }
  //C7 fire
  if (c7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*6));
  }
  //C8 fire
  if (c8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*7));
  }
  //C9 fire
  if (c9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*8));
  }
  //C10 fire
  if (c10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*2), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    D FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //B1 fire
  if (d1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230);
  }
  //D2 fire
  if (d2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*1));
  }
  //D3 fire
  if (d3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*2));
  }
  //D4 fire
  if (d4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*3));
  }
  //D5 fire
  if (d5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*4));
  }
  //D6 fire
  if (d6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*5));
  }
  //D7 fire
  if (d7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*6));
  }
  //D8 fire
  if (d8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*7));
  }
  //D9 fire
  if (d9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*8));
  }
  //D10 fire
  if (d10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*3), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    E FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //E1 fire
  if (e1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230);
  }
  //E2 fire
  if (e2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*1));
  }
  //E3 fire
  if (e3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*2));
  }
  //E4 fire
  if (e4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*3));
  }
  //E5 fire
  if (e5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*4));
  }
  //E6 fire
  if (e6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*5));
  }
  //E7 fire
  if (e7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*6));
  }
  //E8 fire
  if (e8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*7));
  }
  //E9 fire
  if (e9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*8));
  }
  //E10 fire
  if (e10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*4), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    F FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //F1 fire
  if (f1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230);
  }
  //F2 fire
  if (f2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*1));
  }
  //F3 fire
  if (f3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*2));
  }
  //F4 fire
  if (f4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*3));
  }
  //F5 fire
  if (f5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*4));
  }
  //F6 fire
  if (f6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*5));
  }
  //F7 fire
  if (f7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*6));
  }
  //F8 fire
  if (f8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*7));
  }
  //F9 fire
  if (f9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*8));
  }
  //F10 fire
  if (f10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*5), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    G FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //G1 fire
  if (g1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230);
  }
  //G2 fire
  if (g2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*1));
  }
  //G3 fire
  if (g3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*2));
  }
  //G4 fire
  if (g4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*3));
  }
  //G5 fire
  if (g5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*4));
  }
  //G6 fire
  if (g6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*5));
  }
  //G7 fire
  if (g7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*6));
  }
  //G8 fire
  if (g8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*7));
  }
  //G9 fire
  if (g9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*8));
  }
  //G10 fire
  if (g10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*6), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    H FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //H1 fire
  if (h1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230);
  }
  //H2 fire
  if (h2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*1));
  }
  //H3 fire
  if (h3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*2));
  }
  //H4 fire
  if (h4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*3));
  }
  //H5 fire
  if (h5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*4));
  }
  //H6 fire
  if (h6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*5));
  }
  //H7 fire
  if (h7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*6));
  }
  //H8 fire
  if (h8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*7));
  }
  //H9 fire
  if (h9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*8));
  }
  //H10 fire
  if (h10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*7), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    I FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //I1 fire
  if (i1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230);
  }
  //I2 fire
  if (i2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*1));
  }
  //I3 fire
  if (i3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*2));
  }
  //I4 fire
  if (i4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*3));
  }
  //I5 fire
  if (i5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*4));
  }
  //I6 fire
  if (i6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*5));
  }
  //I7 fire
  if (i7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*6));
  }
  //I8 fire
  if (i8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*7));
  }
  //I9 fire
  if (i9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*8));
  }
  //I10 fire
  if (i10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*8), 230+(75*9));
  }
  /////////////////////////////////////////////////////////////    J FIRE IMAGES   //////////////////////////////////////////////////////////////////////
  //J1 fire
  if (j1==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230);
  }
  //J2 fire
  if (j2==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*1));
  }
  //J3 fire
  if (j3==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*2));
  }
  //J4 fire
  if (j4==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*3));
  }
  //J5 fire
  if (j5==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*4));
  }
  //J6 fire
  if (j6==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*5));
  }
  //J7 fire
  if (j7==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*6));
  }
  //J8 fire
  if (j8==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*7));
  }
  //J9 fire
  if (j9==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*8));
  }
  //J10 fire
  if (j10==3) {
    fire.resize(130, 0);
    image(fire, 80+(75*9), 230+(75*9));
  }
  for(int i = 0; i < 10; i++){
    for(int j = 0; j < 10; j++){
      if (boardm [i][j] == 3){
        fire.resize(130, 0);
        image(fire, 1030+(75*j), 230+(75*i));
      }
    }
  }
}
