SCCS-vsn: games/snake/snake/snake.c 8.2
SCCS-vsn: lib/libplot/dumb/dumb.h 8.2
SCCS-vsn: lib/libplot/dumb/subr.c 8.2
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)snake.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) %G%";
snake would get too good */
struct point d;
int w, i, wt[8];
snake would get too good */
struct point d;
int w, i, wt[8];
- double sqrt(), v1, v2, vp, max;
+ double v1, v2, vp, max;
point(&d,you.col-sp->col,you.line-sp->line);
v1 = sqrt( (double) (d.col*d.col + d.line*d.line) );
w=0;
point(&d,you.col-sp->col,you.line-sp->line);
v1 = sqrt( (double) (d.col*d.col + d.line*d.line) );
w=0;
*
* %sccs.include.proprietary.c%
*
*
* %sccs.include.proprietary.c%
*
- * @(#)dumb.h 8.1 (Berkeley) %G%
+ * @(#)dumb.h 8.2 (Berkeley) %G%
* to change, and is left as an exercise for the reader.
*/
* to change, and is left as an exercise for the reader.
*/
#include <math.h>
#define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
#include <math.h>
#define scale(x,y) y = LINES-1-(LINES*y/rangeY +minY); x = COLS*x/rangeX + minX
-static char sccsid[] = "@(#)subr.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)subr.c 8.2 (Berkeley) %G%";
#endif /* not lint */
#include "dumb.h"
#endif /* not lint */
#include "dumb.h"
int length, i;
double deltaX, deltaY;
double x, y;
int length, i;
double deltaX, deltaY;
double x, y;
- double floor();
- int abs();