söndag 15 mars 2009

The first steps

The first "hello world" steps have already been made, I didn't think of starting the blog until after maybe a week of learning.

But here it is:

printf "Hello World"

The best sources for learning which I have found so far are:

http://sharp-gamedev.blogspot.com/ (borrowed a bit of looks, hope that's ok!)

http://blogs.msdn.com/chrsmith/archive/2008/05/02/f-in-20-minutes-part-i.aspx
http://blogs.msdn.com/chrsmith/archive/2008/05/09/f-in-20-minutes-part-ii.aspx

The first steps was of course to test the code in those places, and make minor modifications to make it feel like "I made this".

What's the next step? I want to make some program that actually does something. And I thought of a little game with matches my mom taught me long ago. It would be a perfect project to start with.

The game
The game is for two. You start by laying out 16 matches in four rows like this:
||||||| (first row)
|||||
(secondrow)
||| (thirdrow)
| (fourth row)

Then player one chooses to remove any number (at least one) of matches from ONE row he chooses.
The next player then removes any number of matches from ONE row he chooses.
It keeps on like that, until only one match remains. The player who has to remove the last match looses the game.

Inga kommentarer:

Skicka en kommentar