Software Programming or Computer programming (often shortened to programming or coding) is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. The "code" is written in a programming language and used to instruct the computer to do certain tasks, whether that is telling it what happens in the next stage in a computer game or what is expected from a software package. The programming languages include C, C++ and Java which you may have already seen on your own computer. The code may be a modification of an existing source or something completely new. The purpose of programming is to create a program that exhibits a certain desired behavior (customization). There is an ongoing debate on the extent to which the writing of programs is an art, a craft or an engineering discipline. Good programming is generally considered to be the measured application of all three, with the goal of producing an efficient and maintainable software solution (the criteria for "efficient" and "maintainable" vary considerably).
See about programming your own games HERE