Samukle me();
void setup() {
printf("Bye World!");
}
const int WATER = 0x1;
const int COFFEE = 0x2;
const int MILK = 0x4;
const int PROTEIN = 0x8;
const int TIRED = 0x1;
const int SAD = 0x2;
const int HAPPY = 0x4;
const int FURIOUS = 0x8;
void loop() {
me.request(WATER);
int Problems = me.countProblems();
if (Problems > me.countProblemsMax) {
me.burnOut();
me.request(COFFEE&MILK);
} else {
Problem = me.getProblems();
for (int problem;problem <= Problems;problem++) {
Problem [problem].attemptResolve();
}
}
if (me.getStatus() != TIRED) {
me.request(PROTEIN);
} else {
me.sleep();
}
/*
░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░
░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░
░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░
░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░
░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░
█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█
█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░
░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░
░░░█░░░░██░░▀█▄▄▄█▄▄█▄████░█░░░
░░░░█░░░░▀▀▄░█░░░█░█▀██████░█░░
░░░░░▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█░░
░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░▒░░░█░
░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░░░░█░
░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░░░░█░░
*/
}
samukle / bateria-eletrica Goto Github PK
View Code? Open in Web Editor NEWProjeto de escola na criação de uma bateria elétrica.