3 ms·
Yup, if I can imagine the if/switch statement that was written to get that response, then they shouldn't bother. NSSiriResponse *response = [NSSiriResponse
by mikestew 10y ago
Yup, if I can imagine the if/switch statement that was written to get that response, then they shouldn't bother.
NSSiriResponse *response = [NSSiriResponse new];
if (currentTemp < roomTemp) {
// Randomly select a response from the pre-determined list
response = responses.lookup(kCOLD_TEMP_RESPONSE);
else {
response = responses.lookup(kHOT_TEMP_RESPONSE);
}
[response speak];
I can't say that we've made giant steps since Eliza. :-)