Suggestions for a C# Windows project to learn C#
-
I have been through various books to learn C#. The books have simple examples and unrelated examples from chapter-to-chapter. I am now trying to think of a C# Windows Application that I can create to help cement C# into my brain. I have thought about doing a project that will implement the game hangman. I want to somehow make the project database-driven too (with sql). But was wondering if anyone might have some other ideas, or thoughts about the hangman idea? Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
-
I have been through various books to learn C#. The books have simple examples and unrelated examples from chapter-to-chapter. I am now trying to think of a C# Windows Application that I can create to help cement C# into my brain. I have thought about doing a project that will implement the game hangman. I want to somehow make the project database-driven too (with sql). But was wondering if anyone might have some other ideas, or thoughts about the hangman idea? Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
Database is always a good choice - get some values, set some values, display the values on some controls. If your conception of hangman involves graphics (drawing on the windows form), that would not be particularly typical of what a person would do to get a "hang" of C#. But there is no right, no wrong. It is upto you. Drawing on the screen is real fun - but my personal view is most of the time in the professional world, you would not need that unless you are working for may be an ad company. Best of luck! Koushik Biswas
-
I have been through various books to learn C#. The books have simple examples and unrelated examples from chapter-to-chapter. I am now trying to think of a C# Windows Application that I can create to help cement C# into my brain. I have thought about doing a project that will implement the game hangman. I want to somehow make the project database-driven too (with sql). But was wondering if anyone might have some other ideas, or thoughts about the hangman idea? Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
In addition to the post by Koushik Biswas I'd say that Hangman is quite a good starting point. You can use the database to store a dictionary of words and phrases. Database interaction is probably the most common activity in the business world (certainly, I spend most of my time writing code that interacts with the database). To get an understanding of more complex logic code, you might try a strategy game. If you are feeling advernturous you could then refactor it so that the computer acts as one of the players. That will get you learning about design patterns as well - this is an excellent transferrable skill that will go beyond C# into many other languages (very important in the modern world where the language of choice changes every few years)
LuluSailor wrote:
Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
When I was in high school (16 years ago now) the project was to create a game like noughts-and-crosses or nim. When I did C++ classes at university (13 years ago) the project set was to create a simple vector drawing package. You could place various shapes (the model in the View-Controller-Model pattern) onto a drawing surface (the view - you could create a custom control for that). Each shape could be selected and moved or resized. Think of is as a very simplistic powerpoint type of application, but with only one slide. The picture could be saved and loaded from disk (so this gets you some practice with File IO, or XML Serialization) and it gives you practice designing a file format. I hope this helps. I've sprinkled a few good keywords through that you might like to search on. It's all good practice. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?