Skip to contentSkip to conversation

2048: Reset score on startup

PATCH Applied Alexander Shiyan 2 participants 3 messages Jun 5, 2014 – Jun 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2048: Reset score on startup

---
 commands/2048.c | 2 ++
 1 file changed, 2 insertions(+)
commands/2048.c +2 -0
index 26c9e6c..5ceb5cf 100644
@@ -337,6 +337,8 @@ static int do_2048(int argc, char *argv[])
 		return test();
 	}
 
+	score = 0;
+
 	printf("\033[?25l\033[2J\033[H");
 
 	memset(board,0,sizeof(board));
Signature · 7 lines
1.8.5.5


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Alexander Shiyan
---
 commands/2048.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks. I'm considering a stable release for this ;)

Sascha

Quoted 23 lines
commands/2048.c +2 -0
index 26c9e6c..5ceb5cf 100644
@@ -337,6 +337,8 @@ static int do_2048(int argc, char *argv[])
 		return test();
 	}
 
+	score = 0;
+
 	printf("\033[?25l\033[2J\033[H");
 
 	memset(board,0,sizeof(board));
Signature · 7 lines
1.8.5.5


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Fri, 6 Jun 2014 06:34:30 +0200 от Sascha Hauer <[email protected]>:

Quoted 7 lines · Alexander Shiyan
Quoted 4 lines
---
 commands/2048.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks. I'm considering a stable release for this ;)

Please do this only after we add the world table of records and sound support :)

---

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox