mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH] 2048: Reset score on startup
Date: Thu,  5 Jun 2014 17:46:43 +0400	[thread overview]
Message-ID: <1401976003-30679-1-git-send-email-shc_work@mail.ru> (raw)

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 commands/2048.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/commands/2048.c b/commands/2048.c
index 26c9e6c..5ceb5cf 100644
--- a/commands/2048.c
+++ b/commands/2048.c
@@ -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));
-- 
1.8.5.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2014-06-05 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05 13:46 Alexander Shiyan [this message]
2014-06-06  4:34 ` Sascha Hauer
2014-06-06  9:07   ` Alexander Shiyan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401976003-30679-1-git-send-email-shc_work@mail.ru \
    --to=shc_work@mail.ru \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox