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! 🙂

Comments (11)

  1. Keith Hill says:

    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. 🙂

  2. 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?

  3. PatriotB says:

    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. 🙁

  4. Keith Hill says:

    OK, I’d say around 15 KLOC.

  5. Matthew Wills says:

    45K LOC

  6. On Monday I asked for guesses on the size of the Internet Hearts source base, and the highest (public)…

  7. On Monday I asked for guesses on the size of the Internet Hearts source base, and the highest (public)…

  8. Ray says:

    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!)

  9. Dating says:

    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

Skip to main content