About Us


We are Demian (21) and Shengjia (19), two computer science students at the Karlsruhe Institute for Technology. In our free time, we love to do useless things, but we both also love food. That's why we created this blog to kinda show the world that also college students are able to cook (or not) ;) 
Sometimes it's quite hard to agree on what to cook since we both love and hate pretty different things. But in the end, there's always something yummy which we both like to eat. Follow us on our trip to haute cuisine food via this documentary blog :)

And since we're computer science students, here's the version for the nerdy ones of you ;)

public class Student {
  public int age;
  public String studies;
  public String location;

  public Student(int age, String studies, String location) {
    this.age = age;
    this.studies = studies;
    this.location = location;
  }
}

public class Kitchen {
  public boolean mess;
  public String[] fridgeContent;
  public boolean[] stoveOccupation;
  public boolean ovenOccupation;

  public Food cook(Student[] cookingStudents, Food desiredFood) {
    this.mess = true;
    for (String element: this.fridgeContent) {
      element = "";
    }
    this.stoveOccupation = {true, true, true, true};
    this.ovenOccupation = true;
    if (Math.random() % 2 == 1) {
      desiredFood.state = "cooked";
      desiredFood.tasty = true;
    } else {
      desiredFood.state = "burned";
      desiredFood.tasty = false;
    }
    return desiredFood;
  }
}

public class StudentsVsFood extends Fight {
  public static void main(String[] args) {
    Student Demian = new Student(21, "Computer Science", "Karlsruhe");
    Student Shengjia = new Student(19, "Computer Science", "Karlsruhe");
    Kitchen kitchenKA = new Kitchen();

    while (true) {
      Food desiredFood = new Food(new RandomRecipe());
      Food result = kitchenKA.cook(new Student[] {Demian, Shengjia}, desiredFood);
      result.postOnBlog();
    }
  }
}




10 comments:

  1. zu gut :D !!!!
    aber den fridgeContent doch bitte nicht null setzen :D lieber eine leere menge oder fertigpizza

    ReplyDelete
    Replies
    1. Wow. Das hat sich wirklich jemand ganz durchgelesen? ;)
      Und klar gehört der fridgeContent = null ... wir sind Studenten..haben doch kein Geld für Essen ;)

      Delete
    2. oder als List und eben ne leere. denn bedenke wer über null iteriert der bekommt kein essen :D

      Delete
    3. Dann musst du den Kühlschrank beim nächsten mal halt erst wieder befüllen. Das kann die Küche nur zur Zeit noch nicht...müsstest du noch implementieren ;)

      Delete
    4. So. Jetzt ist er wenigstens nicht mehr null ;)

      Delete
    5. geniale sache!

      Delete
  2. Sehr genial! desiredFood.state... ^^

    ReplyDelete
  3. Hm naja, als Nicht-Nerd hätte ich mir ne "Deutsche" Übesetzung dazu gewünscht.

    ReplyDelete
  4. Love the idea for your blog, many people don't think students can cook, it's great to prove them wrong :)

    Now following!

    missisgoode.blogspot.co.uk
    x

    ReplyDelete