Update to 4.0.pl79

This commit is contained in:
angelos 1999-01-14 01:54:31 +00:00
parent 33e91009dd
commit 68bc1ae587
4 changed files with 101 additions and 87 deletions

View File

@ -1,12 +1,10 @@
# $OpenBSD: Makefile,v 1.2 1998/11/09 01:49:55 marc Exp $
# $OpenBSD: Makefile,v 1.3 1999/01/14 01:54:31 angelos Exp $
#
DISTNAME= gnuchess-4.0.pl77
PKGNAME= gnuchess-4.0.77
DISTNAME= gnuchess-4.0.pl79
PKGNAME= gnuchess-4.0.79
CATEGORIES= games
#BROKEN= "newer version available"
MAINTAINER= angelos@openbsd.org
MASTER_SITES= ${MASTER_SITE_GNU}

View File

@ -1 +1 @@
MD5 (gnuchess-4.0.pl77.tar.gz) = 0d6d3b248bed324e2cb73b63faab2b22
MD5 (gnuchess-4.0.pl79.tar.gz) = 54be6bdcc55d36387213389369f78ec0

View File

@ -18,87 +18,6 @@ diff --minimal -c orig/gnuchess-4.0.pl77/src/dspcom.c gnuchess-4.0.pl77/src/dspc
#else
fflush (stdout);
#ifdef MSDOS
diff --minimal -c orig/gnuchess-4.0.pl77/src/gnuan.c gnuchess-4.0.pl77/src/gnuan.c
*** orig/gnuchess-4.0.pl77/src/gnuan.c Sun May 19 23:39:56 1996
--- gnuan.c Sat Feb 15 00:28:24 1997
***************
*** 1347,1358 ****
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
fflush (fpout);
! gets (infilename);
fprintf (fpout, "\n");
do
{
fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
! gets (inbuf);
search_depth = atoi (inbuf);
if (search_depth < 0)
{
--- 1347,1358 ----
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
fflush (fpout);
! fgets (infilename, 255, stdin);
fprintf (fpout, "\n");
do
{
fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
! fgets (inbuf, 256, stdin);
search_depth = atoi (inbuf);
if (search_depth < 0)
{
***************
*** 1368,1374 ****
do
{
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
! gets (inbuf);
max_minutes = atoi (inbuf);
if (max_minutes < 0)
{
--- 1368,1374 ----
do
{
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
! fgets (inbuf, 256, stdin);
max_minutes = atoi (inbuf);
if (max_minutes < 0)
{
***************
*** 1378,1384 ****
}
while ((max_minutes + max_seconds) < 1);
fprintf (fpout, "Post the search results(y/n).\n");
! gets (inbuf);
if (inbuf[0] == 'y')
flag.post = true;
else
--- 1378,1384 ----
}
while ((max_minutes + max_seconds) < 1);
fprintf (fpout, "Post the search results(y/n).\n");
! fgets (inbuf, 256, stdin);
if (inbuf[0] == 'y')
flag.post = true;
else
***************
*** 1558,1564 ****
while (true)
{
printf (">");
! gets (GNUANinbuf1);
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)
--- 1558,1564 ----
while (true)
{
printf (">");
! fgets (GNUANinbuf1, 128, stdin);
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)
diff --minimal -c orig/gnuchess-4.0.pl77/src/nondsp.c gnuchess-4.0.pl77/src/nondsp.c
*** orig/gnuchess-4.0.pl77/src/nondsp.c Sun May 19 23:40:31 1996
--- nondsp.c Sat Feb 15 00:25:49 1997

View File

@ -0,0 +1,97 @@
*** src/gnuan.c.orig Mon Sep 28 02:41:21 1998
--- src/gnuan.c Wed Jan 13 20:50:50 1999
***************
*** 1348,1359 ****
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
fflush (fpout);
! gets (infilename);
fprintf (fpout, "\n");
do
{
fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
! gets (inbuf);
search_depth = atoi (inbuf);
if (search_depth < 0)
{
--- 1348,1359 ----
fpout = stderr;
fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
fflush (fpout);
! fgets (infilename, 255, stdin);
fprintf (fpout, "\n");
do
{
fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
! fgets (inbuf, 256, stdin);
search_depth = atoi (inbuf);
if (search_depth < 0)
{
***************
*** 1369,1375 ****
do
{
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
! gets (inbuf);
max_minutes = atoi (inbuf);
if (max_minutes < 0)
{
--- 1369,1375 ----
do
{
fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
! fgets (inbuf, 256, stdin);
max_minutes = atoi (inbuf);
if (max_minutes < 0)
{
***************
*** 1379,1385 ****
}
while ((max_minutes + max_seconds) < 1);
fprintf (fpout, "Post the search results(y/n).\n");
! gets (inbuf);
if (inbuf[0] == 'y')
flag.post = true;
else
--- 1379,1385 ----
}
while ((max_minutes + max_seconds) < 1);
fprintf (fpout, "Post the search results(y/n).\n");
! fgets (inbuf, 256, stdin);
if (inbuf[0] == 'y')
flag.post = true;
else
***************
*** 1559,1565 ****
while (true)
{
printf (">");
! gets (GNUANinbuf1);
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)
--- 1559,1565 ----
while (true)
{
printf (">");
! fgets (GNUANinbuf1, 128, stdin);
p = GNUANinbuf1;
q = GNUANinbuf;
while (true)
***************
*** 1724,1730 ****
move_percent[black] = ((float) same_moves[black]) * 200 / (float) (GNUANmovecnt + (GNUANmovecnt % 2 ? 1 : 0));
fprintf (fpout, "\n White's percentage was %5.2f%%. Black's percentage was %5.2f%%.\n", move_percent[white], move_percent[black]);
time (&end_time);
! elapsed_time = difftime(end_time - start_time);
fprintf (fpout, "\n Elapsed time was %ld seconds.\n", elapsed_time);
fclose (fpin);
fclose (fpout);
--- 1724,1730 ----
move_percent[black] = ((float) same_moves[black]) * 200 / (float) (GNUANmovecnt + (GNUANmovecnt % 2 ? 1 : 0));
fprintf (fpout, "\n White's percentage was %5.2f%%. Black's percentage was %5.2f%%.\n", move_percent[white], move_percent[black]);
time (&end_time);
! elapsed_time = difftime(end_time, start_time);
fprintf (fpout, "\n Elapsed time was %ld seconds.\n", elapsed_time);
fclose (fpin);
fclose (fpout);