petrosh / diarissues

Get a diary on Issues.
https://petrosh.github.io/diarissues
0 stars 2 forks source link

Non sono sicuro #14

Open petrosh opened 8 years ago

petrosh commented 8 years ago

First question

Second question

question1 = sicuro; // true
question2 = robot; // false
first = true; // false
second = false; // true
condition = true; // false
condition1 = (first) ? question1 : !question1;
condition2 = (second) ? question2 : !question2;
phrase = (condition) ? (condition1 && condition2) : (condition1 || condition2);
// Sei sicuro E Non sei un robot?
// true > (sicuro true) && (non robot true) > true
// Si
question1 = confuso; // false
question2 = sentimentale; // true
first = false; // true
second = true; // false
condition = false; // true
condition1 = (first) ? question1 : !question1;
condition2 = (second) ? question2 : !question2;
phrase = (condition) ? (condition1 && condition2) : (condition1 || condition2);
// Non sei confuso O Sei sentimentale?
// false > (non confuso true) || (sei sentimentale true) > true
// Si