passpigs

simple pass the pigs strategy
git clone https://a3nm.net/git/passpigs/
Log | Files | Refs

commit c251196fb4110f6ce3627dd4fb768262980cc4ae
parent da4a0b64cc8e1386dce435574c9fcaa4bdc9b4e4
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 25 Dec 2016 23:50:32 +0100

fixes to interface

Diffstat:
main.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c @@ -98,6 +98,8 @@ int main() { int new = 0; scanf("%d", &new); j += new; + if (!new) + j = 0; act = A[FACT*i][FACT*j][FACT*k]; printf("@NOW: you cur / thm => \n"); printf(" %3d %3d %3d: %d %f\n", i, j, k, act, S[FACT*i][FACT*j][FACT*k]); @@ -110,6 +112,9 @@ int main() { printf("what is now the opponent score?\n"); i += j; scanf("%d", &k); + // because of hack + if (!k) + k = 1; } printf("finished: %d %d %d\n", i, j, k); if (i+j >= MAX)