[BACK]Return to prdata.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / hangman

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/hangman/prdata.c between version 1.6 and 1.7

version 1.6, 2012/06/19 05:45:00 version 1.7, 2012/10/13 21:03:09
Line 47  __RCSID("$NetBSD$");
Line 47  __RCSID("$NetBSD$");
 void  void
 prdata(void)  prdata(void)
 {  {
         bool *bp;          int i;
   
         move(GUESSY, GUESSX + sizeof "Guessed: ");          move(GUESSY, GUESSX + sizeof "Guessed: ");
         bp = Guessed;          for (i = 0; i < 26; i++)
         while (bp < &Guessed[26])                  if (Guessed[i])
                 if (*bp++)                          addch(i + 'a');
                         addch((bp - Guessed) + 'a' - 1);  
         clrtoeol();          clrtoeol();
         mvprintw(NUMBERY, NUMBERX + sizeof "Word #:          ", "%d", Wordnum);          mvprintw(NUMBERY, NUMBERX + sizeof "Word #:          ", "%d", Wordnum);
         mvprintw(AVGY, AVGX + sizeof "Current Average: ", "%.3f",          mvprintw(AVGY, AVGX + sizeof "Current Average: ", "%.3f",

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

CVSweb <webmaster@jp.NetBSD.org>