Tic Tac Toe in C++ Programming Chapter 1

Only available on StudyMode
  • Download(s): 495
  • Published: October 4, 2012
Read full document
Text Preview
Tic Tac Toe in C++ Programming Language

Abstract:
Tic tac toe is a great mental exercise used to improve the thought process in children and adults, tic tac toe is believed to be the oldest game in history but it is still played today including in computer because it was easy to apply in any programming language, this is a game for two players, first you decide who will be using O's and who will using X's. Second decide who will start. The players put their symbol in an empty square when it is his its time. First with three of their symbols along a straight line or diagonally line has won, it was so exciting to play in computer.

1. Introduction:
This is my research work,it includes the objectives to show the aim of my paper, the idea which is to produce O’s and X’s in my program, you can see the result of my work, and what is this all about, and alsothis was modified and fix, the new version of tic tac toe.This research was not hard to find, and the method of making it was really fun,as an information technology I know some of programming language that was my advantage making it, when I am starting to make my research C++ is not the application that I choose to apply to my game, visual basic is my first choice but I had encounter many problems that I can’t fix so I change to C++, I know that it was risky to change my application because changing an application is like start all over again process, but C++ is one of the most popular programming languages and the source code is open source but not totally fix, so way in my own skill in programming I use C++ and fix the game.Tic tac toe is a great mental exercise used to improve the thought process in children and adults, tic tac toe is believed to be the oldest game in history but it is still played today including in computer because it was easy to apply in any programming language, this is a game for two players, first you decide who will be using O's and who will using X's. Second decide who will start. The players put their symbol in an empty square when it is his its time. First with three of their symbols along a straight line or diagonally line has won, it was so exciting to play in computer.

1.1 Objectives:

To create a game in C++ programming language for children and adult that can test their mental strength in playing this game.

2.2 Scope and Limitation of Research
Even though the tic tac toe is easy to understand, apply, and to play their are a problem making it in c++, it is not easy for the beginners because c++ are very complicated if they are using Java. but it gives them a great experience doing it.

2.3 Significance of the Research
To develop a C program that allows two person to play noughts and crosses. The computer must deside when the game has been won and whom, or whether the gme has been drawn. The computer should display the board after each move When the programme is first run the opening screen appears. This opening screen is put together using a series of "printf" functions. It asks the user if they wish to play, if the user decides to play they key in number one. The one is stored as an integer in a box called "play". Using an if statement, if play is equal to one.Once the one is pressed then the rules appear and using a printf statement to bring up "Player 1 (x) please enter your first name", Mark the first player then enters his name which is stored using a scanf statement. Once his name has been entered and the carriage return button is pressed then "Player 2 (o) please enter your first name" appears. Trevor the second player enters his name, which is also stored as a scanf statement. Once the carriage return is pressed the following appears.

Strategy:
be strategic in playing this game, here are my simple strategy, just follow this strategy because You will lose if you do not follow this strategy. You must be the first one to move because you have more option to win. If you are first, choose a...
tracking img