Improve programming skills by games development
I want to improve my programming skills, and I believe that games programming is the best approach for improving my programming skills.
Can you please guide me to getting started with some very basic/little games (with source code of course) like tic-tac-toe, etc. and then to some hi-fi games like chess or Snakes and开发者_开发百科 Ladders.
If you want to improve your programming skills, which includes your analytical skills... asking for source code is probably counter productive.
You know how to play tic-tac-toe, you know the rules of each chess piece.
If you really want to improve your skills, you will attempt to implement them without source code.
Logically you know tic-tac-toe has a 3 by 3 board, so you'll need to set up that data structure and decide how you're going to store whether each cell is empty, an O, or an X. You'll have to pick how each player will make their move, who goes first, and check for the win & tie conditions.
I had the same idea quite some years ago now and this book was probably the most useful book I've read (it is VB.NET rather than C# but should be just as useful) - Learn-VB-NET-Through-Programming
精彩评论