git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unofficial version 0.6: first major updates
[netris.git]
/
sr.c
diff --git
a/sr.c
b/sr.c
index d9b1172e32a71ad20580d07ef800e0f4cc9d0d5d..2cc3c93e06d294e4ed7f557419cf7764157ee151 100644
(file)
--- a/
sr.c
+++ b/
sr.c
@@
-1,6
+1,6
@@
/*
* sr -- A sample robot for Netris
/*
* sr -- A sample robot for Netris
- * Copyright (C) 1994,1995
Mark Weaver <Mark_Weaver@brown.edu
>
+ * Copyright (C) 1994,1995
,1996 Mark H. Weaver <mhw@netris.org
>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-16,7
+16,7
@@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: sr.c,v 1.
9 1995/07/11 08:53:3
0 mhw Exp $
+ * $Id: sr.c,v 1.
10 1996/02/09 08:22:2
0 mhw Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-446,7
+446,7
@@
int main(int argc, char **argv)
}
if (pieceState == 1) { /* Decided */
if (memcmp(piece, pieceDest, sizeof(piece))) {
}
if (pieceState == 1) { /* Decided */
if (memcmp(piece, pieceDest, sizeof(piece))) {
- WriteLine("Rot
ate
%d\n", pieceCount);
+ WriteLine("Rot
Right
%d\n", pieceCount);
pieceState = 2;
}
else if (pieceLeft != leftDest) {
pieceState = 2;
}
else if (pieceLeft != leftDest) {
@@
-468,3
+468,7
@@
int main(int argc, char **argv)
return 0;
}
return 0;
}
+/*
+ * vi: ts=4 ai
+ * vim: noai si
+ */