static int ai_goodBadToInt(S s) { if (eq(s, 'good)) ret 1; if (eq(s, 'bad)) ret -1; ret 0; }