C++ INVESTIGATORY PROJECT ON TIC TAC TOE GAME

February 5, 2018 | Author: rupeshkumarpandey888 | Category: Computer Programming, Areas Of Computer Science, Computing, Technology, Software Engineering
Share Embed Donate


Short Description

THSI IS A PROJECT BASED ON SIMPLE LOGIC .......SPECIALLY MADE FOR CBSE 12TH STUDENTS...

Description

A Project Report On Tic TAC toe game

Submitted By RUPESH KUMAR PANDEY Class: XII B Under the Guidance of Mrs. Anshu Rani PGT (Computer Science) Department of Computer Science Kendriya Vidyalaya Air Force Station Bidar, KARNATAKA.

Department of Computer Science Kendriya Vidyalaya Air Force Station Bidar, KARNATAKA.

This is to certify that RUPESH KUMAR PANDEY Of Class XII B has prepared the report on the Project entitled “Tic Tac Toe game”. The report is the result of his efforts & endeavors. The report is found worthy of acceptance as final project report for the subject Computer Science of Class XII. He has prepared the report under my guidance.

(Mrs. Anshu Rani) PGT (Computer Science) Department of Computer Science Kendriya Vidyalaya AFS BIDAR.

Department of Computer Science Kendriya Vidyalaya AFS Bidar.

CERTIFICAT E The project report entitled “Tic Tac Toe game”,

Submitted by RUPESH KUMAR PANDEY of Class XII B for the CBSE Senior Secondary Examination class XII of Computer Science at Kendriya Vidyalaya AFS Bidar has been examined.

SIGNATURE OF EXAMINER

D E C LAR AT I O N I hereby declare that the project work entitled “TIC TAC TOE GAME”, submitted to Department of Computer Science, Kendriya Vidyalaya AFS Bidar Karnataka is prepared by me. All the coding is result of my personal efforts.

RUPESH KUMAR PANDEY Class XII B

ACKNOWLEDGEMENT I would like to express a deep sense of thanks & gratitude to my project guide Mrs.Anshu Rani for guiding me immensely through the course of the project. She always evinced keen interest in my work. His constructive advice & constant motivation have been responsible for the successful completion of this project. My sincere thanks goes to Shri Krishna Kumar K.K, Our principal sir, for his co-ordination in extending every possible support for the completion of this project. I also thanks to my parents for their motivation & support. I must thanks to my classmates for their timely help & support for compilation of this project. Last but not the least, I would like to thank all those who had helped directly or indirectly towards the completion of this project.

RUPESH KUMAR PANDEY Class: XII B

CONTENTS

1. HEADER FILES USED. . . . . . . . . . . . . . . . .

2. WORKING DESCRIPTION. . . . . . . . . . . . .

3. CODING . . . . . . . . . .. . . . . . . . . . . . . . . . 4. OUTPUT SCREENS. . . . . . . . . . . . . . . . . . . .... 5. BIBLIOGRAPHY. . . . . . . . . . . . . . . . . . . . .

....

HEADER FILES USED 1.FSTREAM.H – for file handling, cin and cout

2. PROCESS.H – for exit() function 3. CONIO.H – for clrscr() and getch() functions 4. STDIO.H – for standard I/O operations 5. STRING.H – for string handling 6. MATH.H–for operations

doing

mathematical

WORKING DESCRIPTION

This program is based on the simple logic game named Tic Tac Toe(‘X’ and “O’’) This program consists of two players who can play the game 1. 2.

PLAYER ONE IS ASSIGNED ‘X’ PLAYER TWO IS ASSIGNED ‘O’

3.

EACH PLAYER HAS TO ENTER NUMBER APPEARING IN TABLE AND GET THEIR SYMBOL ALLIGNED ALL IN ROW OR COLOUMN OF ANY OF THE DIAGONAL.

4.

ONE WHO DOES THE ABOVE MENTIONED WINS THE GAME.

CODING #include #include #include #include #include #include char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; int checkwin(); void board(); int main() { int player = 1,i,choice; char mark; clrscr(); do { board(); player=(player%2)?1:2; cout \aPlayer "
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF