Created
August 21, 2011 06:30
-
-
Save caleb-vear/1160248 to your computer and use it in GitHub Desktop.
Sample of GuessWho c# library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var randomName = new NameGenerator(); | |
const int takeCount = 2; | |
Console.WriteLine("First {0} male names", takeCount); | |
foreach (var name in randomName.MaleNames().Take(takeCount)) | |
Console.WriteLine(name); | |
Console.WriteLine(); | |
Console.WriteLine("First {0} female names", takeCount); | |
foreach (var name in randomName.FemaleNames().Take(takeCount)) | |
Console.WriteLine(name); | |
Console.WriteLine(); | |
Console.WriteLine("First {0} all names", takeCount); | |
foreach (var name in randomName.Names().Take(takeCount)) | |
Console.WriteLine(name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First 2 male names | |
Steve Ashcraft | |
Christopher Timothy Bischoff | |
First 2 female names | |
Denise Jan Dellinger | |
Brigida Carpenter | |
First 2 all names | |
Ivan Brent Duffey | |
Christy Mildred Clark |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment