Tic tac toe game code

download Tic tac toe game code

of 21

  • date post

  • Category


  • view

  • download


Embed Size (px)


Tic tac toe game code in c

Transcript of Tic tac toe game code

  • 1. FORMAT OF TERM PAPER1. Title page of project report2. Table of contents3. Introduction4. Proposed systemi. Descriptionii. System requirements5. Requirement Analysis6. System Design7. Source code8. Testing9. Future scope of project

2. OF(TIC TAC TOE)Submitted in the partial fulfillment of the Degree of Bachelor of Technology(Integrated)InComputer Science and EngineeringSUBMITTED BY:- GUIDED BY:Name ANIL KUMAR Miss Sukhdilpreet KaurRegd. No.10802020RollnoR246B55SUBMITTED TODepartment of Computer Science and Engineering Lovely Professional UniversityPhagwara 3. ACKNOWLEDGEMENTI take this opportunity to present my votes of thanks to all those guidepost who reallyacted as lightening pillars to enlighten our way throughout this project that has led tosuccessful and satisfactory completion of this study.We are really grateful to our HOD Mr. Rohit Dhand for providing us with anopportunity to undertake this project in this university and providing us with all thefacilities. We are highly thankful to Miss Sukhdilpreet Kaur for her active support,valuable time and advice, whole-hearted guidance, sincere cooperation and pains-takinginvolvement during the study and in completing the assignment of preparingthe said project within the time stipulated.Lastly, We are thankful to all those, particularly the various friends , who have beeninstrumental in creating proper, healthy and conductive environment and includingnew and fresh innovative ideas for us during the project, their help, it would havebeen extremely difficult for us to prepare the project in a time bound framework.Name ANIL KUMARRegd. No.10802020Roll No.R246B55 4. TABLE OF CONTENTS1. Introduction2. Proposed systemi. Descriptionii. System requirements3. Requirement Analysis4. System Design5. Source code6. Testing7. Future scope of project 5. INTRODUCTIONIn the existing system, most of the records are maintained on paper. It becomes veryinconvenient to modify the data. In the existing system, here is a possibility that the samedata in different registers may have different values which means the entries of the samedata do not match. This inconsistent state does not supply the concrete information whichposes a problem in the case information related to particular search record.Our project is very useful. User is no longer required to check his register in search ofrecords, as now it can be searched over the software by choosing some options. The userneed not to type in most of the information. He/she is just required to enter the desiredoptions. On the whole it liberates the user from keeping lengthy manual records. In anutshell, it abates the work load of an organization.In todays world, no one likes to perform calculations on calculator or manually whencomputer is there. Every one wants his/her work to be done by computer automaticallyand displaying the result for further manipulations. 6. PROPOSED SYSTEMThe following documentation is a project the Name of the term paper allotted. It is adetailed summary of all the drawbacks of the old system and how the new proposedsystem overcomes these shortcomings. The new system takes into account the variousfactors while designing a new system. It keeps into the account the Economicalbandwidth available for the new system. The foremost thing that is taken care of is theNeed and Requirements of the User.DESCRIPTIONBefore developing software we keep following things in mind that we can developpowerful and quality softwarePROBLEM STATEMENTo Problem statement was to design a module:o Which is user friendlyo Which will restrict the user from accessing other users data.o Which will help user in viewing his data and privileges.o Which will help the administrator to handle all the changes.FUNCTIONS TO BE PROVIDED:The system will be user friendly and completely menu driven so that the users shall haveno problem in using all options.o The system will be efficient and fast in response.o The system will be customized according to needs.SYSTEM REQUIRMENTSOperating system: MS Windows XP or Windows VistaLanguage: C LanguageProcessor: Pentium IV ProcessorRAM: 512 MBHard disk: 5 GB 7. REQUIREMENT ANALYSISThis process is adopted when management of the system development, Personnel decidethat the particular system needs improvement. The system development life cycle is theset of activities, carried out by the analyst, designers and users to develop and implementa system. The systems that are present in the nature follow common life cycle pattern.For example consider the raining system. Initially the rain falls into the river, river flowsinto sea, the sea water evaporates to form vapors, the vapors form clouds which againbring rain. Similarly consider a man made system initially a system is analyzed, designedand made operational by the efforts of system analysis. After successful operation or anumber of users, the system becomes less and less effective by change in theenvironment. So these changes have to be incorporated in to the system by minormodifications. So the general activities from the life cycle of the system are given below: Select ion and identification of the system to be studied Preliminary study Defining the system Design and development of the system Implementation of the system 8. SYSTEM DESIGNThen we began with the design phase of the system. System design is a solution, a HOWTO approach to the creation of a new system. It translates system requirements intoways by which they can be made operational. It is a translational from a user orienteddocument to a document oriented programmers. For that, it provides the understandingand procedural details necessary for the implementation. Here we use Flowchart tosupplement the working of the new system. The system thus made should be reliable,durable and above all should have least possible maintenance costs. It should overcomeall the drawbacks of the Old existing system and most important of all meet the userrequirements.STARTWELCOME TO GAME TIC TAC TOEEnteryourchoice?START CHOICE QUITDo you want tocontinue?STOP 9. SOURCE CODE#include#include#include#include#include#include#includevoid*message;int select(int mult){union REGS inregs, outregs ;int bli=1,use=1,key=34,i;settextstyle(2,0,5);while(key!=28){if(bli>0){use=bli;setfillstyle(1,0);bli=0-bli;}else if(bli