Go Fish/Aime: Difference between revisions

no edit summary
(Created page with "{{collection|Go Fish}} The AI will randomly ask a rank known to be in the human's hand (a card in the AI's hand that the human has asked for before and the AI hasn't asked for...")
 
No edit summary
Line 14:
l_p_text(l, drand(l_length(l)),
insert(cut("SHDC", i, 1), 0,
character("A23456789TJQK", [j)]));
}
}
Line 30:
s = pick;
while (r_greater(p, s, s)) {
if (character(s, [0)] == character(pick, [0)]) {
i += 1;
} else {
Line 107:
h = r_greater(p, s, d);
if (h) {
if (character(s, [0)] != character(d, [0)]) {
h = 0;
} else {
Line 128:
f_line(input, pick);
if (length(pick) != 1
|| index("A23456789TJQK", character(pick, [0)]) == -1) {
o_text("bad choice\n");
} else {
r_greater(u, pick, s);
if (character(s, [0)] != character(pick, [0)]) {
o_plan("you don't have any ", pick, "s\n");
} else {
Line 171:
 
if (r_greater(c, s, t)) {
if (character(s, [0)] == character(t, [0)]) {
lb_p_text(l, s);
}
Anonymous user