Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
LEARN HOW TO QUICKLY BUILD A TIC-TAC-TOE GAME ON WINDOWS USING VISUAL C++
Do you want to learn how to build Windows applications using C++ and Windows API? Do you want to build a native Windows application in C++ and have it run on any version of Windows including Windows 7, Windows 8, Windows 8.1 and Windows 10?
Do you want to learn some cool techniques for handling arrays in C/C++? Are you curious to learn what it takes to build a game with Visual C++ on Windows?
If you say yes to any of these questions, then you should consider taking this course today!
WHAT YOU ARE GOING TO LEARN:
This course is 100% free, so there is nothing to lose! I made my best efforts to provide high quality content and to make this both useful and fun to watch.
Let’s get started today! Enroll now!
WHAT'S IN THE COURSE?
In this course I try to cover basic understanding of Windows programming as well as the functions we use. However, it requires a lot of time and effort to cover Windows programming and Windows APIs from scratch, which is outside the scope of this course.
OVER 400 STUDENTS ON FIRST DAY & OVER 1 THOUSAND STUDENTS THE FIRST WEEK!
ENROLL TODAY TO LEARN HOW TO BUILD YOUR OWN TIC-TAC-TOE!
NOTE: FULL SOURCE CODE ATTACHED TO LECTURE #15
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Learn to program Tic Tac Toe in Visual C++ on Windows|
In this video we will take a quick look at the application we're going to build together during this tutorial!
I hope you enjoy it and find it useful!
In this video I will walk you through the process to create a new Windows application using Visual Studio 2015 and briefly go over the generated code together to understand the components of the Win32 applications that we will use for our Tic Tac Toe game.
Please make sure to download and install Visual Studio Community Edition (Free) from Microsoft.
In this video we discuss some Windows API to draw the rectangle for our Tic Tac Toe game board. We also learn how to make it always centered and also learn how to prevent the user from re-sizing the window smaller than the size of the game board itself.
In this lecture, we learn how to change background color of our application window and also learn different ways to slice and dice our game board into individual cells.
In this lecture, we learn how to detect mouse clicks by handling WM_LBUTTONDOWN message and then we learn how to write a function together in C/C++ to determine the rectangular area of the cell clicked by the user
In this lecture we learn how to implement GetCellRect function to calculate the dimensions of a given cell at index location (0 to 8) and return that as a RECT structure
In this part, we continue to explore how to use solid brushes for players. We will create a red brush and a blue brush and see how we can alternate between the two using some code logic.
In this lecture, we learn how to best store player moves in memory using 1-dimensional array (vector) so that we track player moves and also to redraw everything whenever we receive a WM_PAINT message
In this lecture we learn how to implement GetWinner function and learn how to display messages to the players using MessageBox and also we will learn how to efficiently manipulate arrays and avoid writing too many if conditional statements
In this lecture, we learn how to modify resource files to add menu items. We will also learn how to prompt user for YES/NO and how to reset the game and start a new game
In this lecture, we learn how to draw out some text inside the main window using GDI and also learn about setting text foreground and background colors
In this part, we see how to implement a function called ShowTurn that helps us show turn messages as well as other messages in the main window as the players take turns
In this lecture, we learn how to draw images using icons instead of the red & blue colors.
In this part we continue to make further enhancements to the code and also learn how to highlight the three cells that contain the winning move using colors
In this lecture, I close the course with some final ideas on how to improve this further and expand on it and also I would like to hear feedback and comments for better courses and projects in the near future...
Also, please find the source code attached to this lecture and thanks for watching!
My name is Mohammad and I have a degree in computer sciences and have been working as a professional software engineer since 1995. I wrote my first program in GW-BASIC when I was 14 years old and since then I knew that I wanna grow up to become a programmer as it is the love and passion of my life.
I also started teaching Visual C/C++ and Visual basic back in 1997 and that is when I learned how much I enjoy teaching and helping others.
I live in Seattle where I moved to the states back in 1999 to work for Microsoft and learned so many tips and tricks of the trade during my 9 years at Microsoft as a senior software engineer.
I mentored, lead and managed many developers in my career and successfully helped ship many products including V 1.0 products like Microsoft Office Communicator ( aka Lync or Skype for Business). When I found out about Udemy, I was immediately hooked as a student, but I also wanted to pursue my passion as an instructor as I know that I enjoy teaching and helping others and I think I can make the learning experience fun and easy :)
Looking forward to getting to e-meet and know everyone on Udemy!