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();
}
}
}
zu gut :D !!!!
ReplyDeleteaber den fridgeContent doch bitte nicht null setzen :D lieber eine leere menge oder fertigpizza
Wow. Das hat sich wirklich jemand ganz durchgelesen? ;)
DeleteUnd klar gehört der fridgeContent = null ... wir sind Studenten..haben doch kein Geld für Essen ;)
oder als List und eben ne leere. denn bedenke wer über null iteriert der bekommt kein essen :D
DeleteDann 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 ;)
DeleteSo. Jetzt ist er wenigstens nicht mehr null ;)
Deletegeniale sache!
DeleteSehr genial! desiredFood.state... ^^
ReplyDeleteHm naja, als Nicht-Nerd hätte ich mir ne "Deutsche" Übesetzung dazu gewünscht.
ReplyDeleteEine englische Übersetzung gibt's nun ;)
DeleteLove the idea for your blog, many people don't think students can cook, it's great to prove them wrong :)
ReplyDeleteNow following!
missisgoode.blogspot.co.uk
x