home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,595 of 243,242   
   Janis Papanagnou to Michael Sanders   
   Re: srand(0)   
   25 Dec 25 09:10:16   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 2025-12-25 05:30, Michael Sanders wrote:   
   >   
   > Ok seed is working for replaying a game. =)   
   > Pure C, no ncurses etc, built in help too.   
      
   How did you implement the colored squares? Using characters from   
   an "extended" character set and ANSI controls for the colors?   
      
   > You know this game don't you Janis?   
   > Simple little project. Screenshot...   
   >   
   >    
      
   Looks nice.[*]   
      
   Only that it looks as if one gets too much information (compared   
   to the original Mastermind)! IMO and AFAIK one should *not* get   
   the _exact_ place of a wrong digit indicated. (The green hints   
   should all be left aligned, and the [optional] red ones all right   
   aligned, and the blue ones in between.)   
      
   Janis   
      
   [*] 18 months ago I've written an optically less appealing command   
   line variant to refresh my Algol 68 skills. Though I just notice   
   that I hadn't finish it yet; I've only implemented playing modes 1   
   and 2. ;-)   
      
      
   Enter a value for #places: 4   
   Enter a value for #colors: 6   
      
   Available playing modes:   
      1  -  computer selects, human guesses   
      2  -  human selects, computer guesses   
      3  -  alternate select/guess roles per game   
      4  -  human selects, human guesses   
      5  -  computer selects, computer guesses   
      0  -  leave the game   
   Choose the playing mode (1-5): 1   
      
   A secret color combination to guess has been chosen.   
   You have to guess it.   
      
   Enter a color combination: 1122   
   Turn  1:   1 1 2 2  -   
   Enter a color combination: 3345   
   Turn  2:   3 3 4 5  -  @   
   Enter a color combination: 6444   
   Turn  3:   6 4 4 4  -  @@   
   Enter a color combination: 6646   
   Turn  4:   6 6 4 6  -  @@@@   
      
   You guessed it!   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca