Skip to main content
GameDev.net gamedev.net
🔒 Locked

C# Case Study

Started by Russell Dec 29, 2003 at 8:46 PM 1 replies 1.2k views
Original Post
Russell
Russell
http://www.microsoft.com/resources/casestudies/CaseStudy.asp?CaseStudyID=13778 I''ve resisted C# for a while now, but this article definitely makes me want to give it a try. Basically this guy wrote a chess program for the Pocket PC using the .NET compact framework, by himself, in 6 months. It supports play over the net against other players, play against the computer (implementing board game AI is non-trivial in itself), play against a web service (how he accomplished this without dealing with the communication protocol was interesting), and has pretty decent graphics. I think it''s awesome that he was able to do all of this for the Pocket PC, but what is even cooler is that the same program will work on a PC too, since the .NET compact framework is a subset of the .NET framekwork. I imagine it would take a single person longer than 6 months to implement the same thing in C++, and even then it probably wouldn''t run on more than one architecture or OS.
Voxelsoft
Voxelsoft
I''ve knocked up a multiplayer chess game in a couple of days from scratch in C++/Win32. There''s not much to it, and porting to WinCE/Nix wouldnt take long. However, the AI is a beast I never got to grips with, and probably never will. Having said that, I cannot see how AI implementation would be much different in C# than in C++. Once the theory is worked out (language independent), the implementation would not pose a problem. Therefore I figure it is the developer that matters, not the language. All you need is a good CompSci.
Vox
invective
invective
If you have ever programmed in java, you have a pretty good idea of what C# is like, and you can probably pick up C# very quickly. Its definately a much easier way of doing windows than the win32 API with either c++ or visual basic. That said, I don''t know that its really a great cross platform language at this point. .NET programs don''t even run on windows unless you have the runtime installed (although this will surely change as microsoft builds it into all future versions of the OS). If you want to target windows, C# is a great way to do it. If you want something cross platform, you are still better off with java, or even C++ with something like SDL.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.