[gnome-games] glines: use a more sensible scoring system (#503953)
- From: Jason Clinton <jclinton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] glines: use a more sensible scoring system (#503953)
- Date: Mon, 13 Sep 2010 21:33:23 +0000 (UTC)
commit d55d3edac483a8b4ecf5acf29e837a27b629dae6
Author: Manu <manu skc gmail com>
Date: Mon Sep 13 15:49:22 2010 -0500
glines: use a more sensible scoring system (#503953)
glines/glines.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index 21cfc78..419f188 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -938,9 +938,10 @@ addscore (int num)
while ((sctab[i].num != num) && (sctab[i].num != 0))
i++;
- if (sctab[i].num == 0)
- retval = 10 + (int) pow ((double) 2.0, (double) (num - 5));
- else
+ if (sctab[i].num == 0) {
+ num-=5;
+ retval = sctab[num%5].score + 72 * (num/5) + (num-5)*24 ;
+ } else
retval = sctab[i].score;
score += retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]