In <[plays]> plays of this game, the record
holder is <[holder]> with <[record]> guesses.
;
int plays, record;
int seed;
string holder;
string localholder;
int fibbonacci(int current) {
int x;
int y;
int z;
int tmp;
int i;
x = 1;
y = 1;
z = 1;
i = 1;
if(current == 0) {
return 1;
}
if(current == 1) {
return 1;
}
i = 2;
while(i <= current) {
tmp = z;
z = x + y;
x = y;
y = z;
i = i + 1;
}
return z;
}
session Play() {
int current;
int correct;
int guess;
current = 0;
correct = 1;
while(correct == 1) {
show plug Init[current = current] receive[guess = guess];
if(fibbonacci(current) != guess) {
correct = 0;
}
current = current + 1;
}
correct = fibbonacci(current);
show plug Fail[correct = correct, current = current-1];
if (record==0 || record