Internet Hearts: Guess the LOC

TechEd made me gain about 5 pounds, and my bag somehow gained 20 pounds.  (And I didn't get a single piece of swag from the Product Pavilion, I swear.)  But I'm back in Redmond after a 24-hour journey from Orlando to Seattle, due to delays at Chicago O'Hare.  I was intrigued that at the beginning of each flight, United plugged (the original) Channel 9.  Perhaps they're starting to appreciate some corporate transparency, too?  Now if United (or any other airline) employees started blogging, that would be interesting...

Anyway, as I mentioned right before TechEd, I now have the source code to Internet Hearts, and will blog about a few of the challenges in integrating new WinFX functionality.  But first, can you guess how many lines of code comprise this application (client and server)?

Some clues: It's a C++ winsock application.  It hasn't been touched since around 1999.  It uses ATL & WTL.  You can explore the client's functionality (on the "Games" menu) if you've got Windows XP.  And to be clear, I'm talking about the card game.  When I mentioned Internet Hearts to Chris Brumme, he wondered if I was talking about an online dating service! :)

Published 13 June 05 12:43 by Adam Nathan
Filed under: ,

Comments

# Keith Hill said on June 13, 2005 3:05 PM:
Something to consider for Longhorn, how about P2P versions of these games? Quite often I'm sitting with folks and we all have laptops (sick I know). Wouldn't be cool if I could play a game of hearts with folks over the LAN? I would think that with managed code/Avalon this should be pretty easy to do. :-)
# Adam Nathan said on June 13, 2005 4:58 PM:
Heh, I first read "P2P" as "PSP" and was a little baffled. :) But yes, P2P is definitely something I've been thinking about when it comes time to add Indigo to the picture. You're right - it should be easy!

But you didn't guess the size of the current code base! Anyone?
# PatriotB said on June 13, 2005 5:45 PM:
Regular Hearts used to be playable over a network (hence its title "The Microsoft Hearts Network"). But the network bits seem to have been removed sometime since Windows 95. :(
# Keith Hill said on June 13, 2005 9:07 PM:
OK, I'd say around 15 KLOC.
# Matthew Wills said on June 13, 2005 10:56 PM:
45K LOC
# Adam Nathan's Win32 to WinFX Blog said on June 15, 2005 1:46 PM:
On Monday I asked for guesses on the size of the Internet Hearts source base, and the highest (public)...
# Adam Nathan's Win32 to WinFX Blog said on September 7, 2005 6:20 PM:
On Monday I asked for guesses on the size of the Internet Hearts source base, and the highest (public)...
# Ray said on April 10, 2006 12:19 AM:
I think Windows Hearts originally used NETDDE with a share of Hearts$ . The code is probably still there but I bet 16bit API is gone in XP .

This should have been fixed a long long time ago, but users probably thought MS decided to remove LAN playing (rather than fix it!)
# internet harts online ms said on April 10, 2008 12:17 AM:

PingBack from http://oscar.theofficenews.com/internethartsonlinems.html

# Dating said on May 23, 2008 8:44 PM:

TechEd made me gain about 5 pounds, and my bag somehow gained 20 pounds. (And I didn't get a single piece of swag from the Product Pavilion, I swear.) But I'm back in Redmond after a 24-hour journey from Orlando to Seattle, due to delays at Chicago O'Hare

# Adam Nathan s Blog Internet Hearts Guess the LOC | internet marketing tools said on June 16, 2009 12:53 AM:

PingBack from http://einternetmarketingtools.info/story.php?id=5957

New Comments to this post are disabled
Page view tracker