Git Product home page Git Product logo

tictactoe's Introduction

Overview

Hello everyone! This C++ program was really fun to build and I must admit it left me with an increasedd curiosity to what can actually be built with C++!

When learning a new programming language, one can have a hard time picking what to build. Let's be honest, we could build anything we want! However, simple projects like TIC - TAC-TOE, can help you get a good experience with applying Object Oriented Programming skills, working with Classes, Functions, and all-that-jazz. My purpose for this program was to be able to apply what was previously mentioned into a language that is not Python; and C++ was next on my list to tackle.

Also, don't make my mistake by trying to shoot for the moon when it comes to learning a new programming language!

If you know how to play TIC TAC TOE, you're on a good road towards understanding the rules of the game. However, playing it on a digital terminal from some randome programmer may have you wondering "How do you start playing this version of the game?!"

Watch the demo video below to see how to play!

Software Demo Video

Development Environment

Tools used for this program were:

  1. Microsoft Visual Studio
  2. GitHub

Programming Languages used:

  1. C++

Step-by-step Game

  1. WELCOME MESSAGE

    Welcome Message

  2. Pick Grid size - for a 2x2 grid, you just type "2". The bigger the grid, the longer you play.

Enter grid size option 1

Enter grid size option 2

  1. Insert number to play X/O.

Number choice 2x2 grid

Number choice 3x3 grid

  1. Winner message displayed with nice ASCII decor!

WinnerX Message

WinnerO Message

Useful Websites

Some of my favorite sources for building this program are listed below. The video resoruces to build the program logic are written at the bottom of the main source mail called TICTACTOE.cpp - see the code section of this GitHub repository.

  • CPLUSPLUS.com - This site will help you understand the proper usage of header files, classes, and syntax.

  • DevDocs.IO - This site has a main focus on proper syntax and provides clean and organized examples.

  • Microsoft Visual Studio - If like me, your IDE of choice is Microsoft Visual Studio (the purple icon IDE that is NOT to be confused with the blue Visual Studio Code IDE), this website can help you understand how to better use your IDE when using programming languages like C++, C, or C#. They even have tutorials, and they're really cool to experiment with!

The purple icon is Microsoft Visual Studio:

Microsoft Visual studio

Future Work

Moving forward, a few things I'd like to implement to this game or any future C++ program I create are:

  • Load images and sounds into C++.
  • Learn how to build a user-friendly GUI.
  • Have ASCII symbols be Sprites.

tictactoe's People

Contributors

thunderbioink avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.