The best way to learn programming I think is by making a game. Maybe just try creating a simple game like tic tac toe first. Also you had a great entry!
To make a tic tac toe i have to make the lines through code to, right?
Yeah but you can make a console version so you don't need to use a graphics library