Skip to content

Commit c84db57

Browse files
committed
optimize comment
add guess number in rust
1 parent a7094d3 commit c84db57

21 files changed

Lines changed: 46 additions & 17 deletions

File tree

c/Snake/clear_version/Clear.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
#elif defined(__APPLE__)
99
#endif
1010

11-
#endif
11+
#endif /* _CLEAR_H */

c/Snake/clear_version/GlobalVar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ char direction = 1; // 1.Right;2.Up;-1.Left;-2.Down;0.Exit
2121
char directiontemp = 1; // 1.Right;2.Up;-1.Left;-2.Down;0.Exit
2222
int delay = 200; // delay 0.2s(200ms)
2323
bool isPause = 0;
24-
#endif
24+
#endif /* _GLOBALVAR_H */

c/Snake/clear_version/KeyMonitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ KeyMonitor(void *arg) // Direction Control:w,s,a,d-->Up Down Left Right
107107
}
108108
}
109109

110-
#endif
110+
#endif /* _KEYMONITOR_H */

c/Snake/clear_version/Move.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
p[0] = p[0] - WIDTH; \
3939
*p[0] = HEAD; \
4040
}
41-
#endif
41+
#endif /* _MOVE_H */

c/Snake/clear_version/ShowMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"Up/Down;\nESC: Exit\n"); \
2626
}
2727

28-
#endif
28+
#endif /* _SHWOMAP_H */

c/Snake/clear_version/Sleep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
#define SLEEPS(delay) usleep((delay)*1000)
1313
#elif defined(__APPLE__)
1414
#endif
15-
#endif
15+
#endif /* _SLEEP_H */

c/Snake/clear_version/Snake.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <pthread.h>
1616
#elif defined(__APPLE__)
1717
#endif
18-
#endif
1918

2019
/* Print String At (x,y) and make Cursor go to another place */
2120

@@ -151,3 +150,5 @@ int isFail()
151150
{ \
152151
direction = directiontemp; \
153152
}
153+
154+
#endif /* _SNAKE_H */

c/Snake/gotoxy_version/Clear.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
#elif defined(__APPLE__)
99
#endif
1010

11-
#endif
11+
#endif /* _CLEAR_H */

c/Snake/gotoxy_version/GetXYFromArrays.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
((ElementCoordinate) - (CoordinateOrigin)) / (Column)
66
#define GETY_CHAR(CoordinateOrigin, ElementCoordinate, Column) \
77
((ElementCoordinate) - (CoordinateOrigin)) % (Column)
8-
#endif
8+
#endif /* _GETXYFROMARRAYS_H */

c/Snake/gotoxy_version/GlobalVar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ char direction = 1; // 1.Right;2.Up;-1.Left;-2.Down;0.Exit
2121
char directiontemp = 1; // 1.Right;2.Up;-1.Left;-2.Down;0.Exit
2222
int delay = 200; // delay 0.2s(200ms)
2323
bool isPause = 0;
24-
#endif
24+
#endif /* _GLOBALVAR_H */

0 commit comments

Comments
 (0)