For our tutorial we’re going to walk through the creation of a “Tic Tac Toe” program. During it’s creation I’ll stop to explain important programming concepts with you but it should show you how to think like the computer when it comes to problem solving.
NOTE: This implementation is going to be far from optimal. This is to ensure we only address the skills we need at this stage of the programming journey and also allows us a foundation for the sequel to this tutorial, “Programming Continued”
The first thing we need to do is make a copy of our template program so we can build our new project:
- Start by closing VB.NET because “template” can’t be open for this bit
- From “My Computer” navigate your way to where the “template” folder is
- Copy and paste the whole “template” folder
- Rename your copied folder to be “01 – Tic Tac Toe“
- Open VB.NET again
- Select “Open Project…” and locate the “Solution.sln” file of your new project
Now you have a new project to work with!
You may have noticed that this project is still being referred to as simply “Project” inside VB.NET so we should probably change that.
- Go into the Solution Explorer
- Right-Click on where it says “Project” and select “Rename“
- Change it to “TicTacToe“
- Press “Enter“
You may have noticed we didn’t use spaces when naming our project. This is simply the first of many “programming conventions” we are going to be adopting. A programming convention is simply a way to do things that might seem really picky but is either necessary by the language/IDE or makes our life easier later. Remember that computers reward attention to detail so learning to be pedantic will be beneficial.
Okay, now that our program is prepared, make sure to save it by clicking the save all button (this ensures all files in this project will be saved):
Before moving onto the actual creation of the game (I know you’re itching, we’ll get there!) we need to understand more about the file/folder structure of a VB.NET project.