Wow yesterday you posted that you're brand new to Unix and don't know anything about it. Now you want to program games.. ambitious!
I don't know if you've taken a programming logic course yet. If you've never programmed before, I'd recommend buying a book on the subject and reading it. That way, you'll know all about loops, arrays, etc. independent of any one language.
The logic of programming is very important for any application you want to develop, so get that down first.