The creation of Tic-Tac-Toe game using the C/C++ language, includes full code of the actual program
Introduction
This is the final report showing all the work put into Mark Smith and Trevor Snaith's noughts and crosses program, for this semesters work. The report includes the aims throughout the project, which is to produce a noughts and crosses programme in "C", the problems which we encountered during writing the program and how we solved them. It shows the results of our noughts and crosses program including some printout from the program and an explanation of how the programme works. It also shows some improvements on how the programme could be made better, and a conclusion.
Aims
To develop a "C" program that allows two people to play "noughts and crosses. The computer must decide when the game has been won and by whom, or whether the game has been drawn. The computer should display the board after each move.
Results
When the programme is first run the opening screen appears as below:-
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 then this follows:-
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:-
"Mark...
Reviews of: "The creation of Tic-Tac-Toe game using the C/C++ language, includes full code of the actual program"
:
More Programming Languages
essays:
Analysis Of The C++ Programming Language
... purpose and expectations of the C++ language and emphasizes the Object Oriented basis that has made C++ so popular. Analysis Of The C++ Programming Language Object Oriented Programming (OOP ...
Report on Fortran as a programming language. Kreitzberg, C & Shnediderman, B. (1982). FORTRAN Programming. New York: Harcourt.
... counting and enumerating, whereas REAL arithmetic is used for measurement. A further extension of the power of the assignment statement is the use of library functions. Library functions are programs that are ...
Programming Languages: How were they created, which language was their compilers created in, and the hierarchy followed in their creation.
... any program that can be ever conceived. Once the language is modeled, and the syntax and other ... is that it allows instructions to be labeled so that the ... all its expressiveness must be formally modeled. Languages such as C and C++ are mathematically modeled by representing a global state with each ...
Microsoft plans to introduce a Windows XP update that would launch a built-in firewall and automatically obtain and install security patches regularly.
... discourage larger corporations from allowing automated updates, they say that companies should test patches, otherwise known as a fix, because this might interfere with the companies' programs' data. This program does require the user to download it and configured them to ...
Career of a Computer Programmer.
... design and create programs that allow the computer to fulfill specific tasks. The programs they create can be from things to help businesses to video games. A computer programmer may spend an hour working on a simple program, but ...
BASIC Programming Language Introduction - This is an explanatory report on what I've learned about BASIC (from a book) and may need improvements.
... your program that you would like to happen in the real life of the program. Chapter 03 Basically, this chapter involves learning how to organize and design your program. It ...
Waterfall and eXtreme programming Methodologies
... processes that build upon one another to reach a conclusion of some sort, whether it is implementing a major software program, updating an existing system, building and deploying ... customer needs in a timely manner. XP allows for the developer to rewrite and improve code, constantly. This give XP an ...
Programming sockets in Java
... argument and also get the input (the body of the message) from standard input. Try to modify it so that it behaves the same as the mail program that comes ...
Just a note
not using two dimensional arrays makes this a whole lot simpler :)
3 out of 3 people found this comment useful.