Report. Tic-Tac-Toe

IntroductionTic-Tac-Toe is a popular simple game for two players all over the world. Traditionally one person plays for “X” while another plays for “O”. The game is played on the square board of 3x3 or even more size. The aim of this game for player is to win by filling with “X” or “O” any row, column or diagonal of the main game board. The game sets players thinking because players should reflect a little bit on strategy and predict some moves of the opponent. So it teaches people to make decisions quickly. MATLAB is computer software for technical computing from the MathWorks. Used for a wide variety of scientific and engineering calculations. The functions of the MATLAB are solving equations, plotting 2D, 3D graphs, calculating statistics, etc. The aim of the report is to describe how Tic-Tac-Toe game simulation was made with the help of MATLAB. The report describes how program reads the code and computer strategy for winning/not losing in the game.

Theory.The aim the individual coursework was to program 4x4 Tic-Tac-Toe game for player and computer using MATLAB with condition that computer should always win or just not loose. Programming the game basic loops such as “while”, “for”, “if” were used, where “while” means to repeat smth until some particular conditions are holding, “for” means to do smth for particular conditions, and “if” means to do smth if some conditions are true. There also were used “sum” function which helps to count “X”-s or “O”-s in rows, columns, diagonals and basic commands for matrices.

Methodology
The game is played in command window, using the matrice 4x4, where “X” is 1, “O” is -1 and empty cells are zeros. The main algorithm of the program is on Graph 1.

Graph 1. The main algorithm of the Tic-Tac-Toe program.
The game is starting by choosing randomly either computer is playing for “X” or for “O”. Then first move is...

You May Also Find These Documents Helpful

...﻿Nazarbayev University
School of Engineering
Report
Individual Coursework:
Tic-tac-toe
Name: Lyazzat Zhanshayeva
ID: 201104072
Lecturer: Jaan H Pu
Personal tutor: Sarim Al-Zubaidy
Date of submission: 6/03/2013
Astana, 2013
Introduction
Tic-tac-toe is a game where two players try to win by putting circles or crosses in a line in the row, column or diagonal of a square board. The objective of the individual coursework is to create such game in a 4x4 board on the MATLAB software with already existing one ‘O’ and one ‘X’ on it. Moreover, some specific details must be considered: the next is computer’s turn where machine chooses the sign for the whole game and put it; then turn goes to player and vise-versa in order to win the game or finish with the draw without cheating. Thus, the main aim of this report is to introduce the theory of the game and MATLAB functions, concisely describe the game strategy and methodology, and finally discuss the obtained results.
Theory
MATLAB. One kind of the computing languages is MATLAB created by MathWorks, which allows manipulation of matrix, plotting of functions, implementation of algorithms, creation of interfaces, and interfacing with platforms written in other languages. This type of scientific computing application has significant advantages among other software simulations which can be seen...

...Tic, Tac, Toe, Who Can Be The CFO?
“This is a clinical situation, client needs candidate, candidate comes with a personality... understand the client hires a personality finally, not his certificates or baggage.” Many recruiting firms are driven by this logic, which is wrong.
It is a transition for the organizations, when recruiting a senior management. Each of us comes with a personality, it is behavior which at certain extent enhances the job performance, but it is only one among several factors that impact the job performance. Few things like taking the right decisions at the right time can come through experience which comes by doing the right jobs.
Few recruiting organizations uIn days of yore, he was called chief accountant, a.k.a. bean counter and book keeper. But in the past 10 years, there has been a paradigm shift in a CFO’s role. Add to this, the advent of technology, breakdown of geographical barriers and the global financial crisis. The spotlight is now glaring on the CFO as never before.
This is what Jeetun Patki needs to keep in mind as he defines his ideal candidate. The CFO is not merely a name change, but a new role. Increasing investments from private equity brought the CFO to centre stage in managing stakeholder expectations and investor relations. Increasingly, the CFO is being seen as the shadow CEO, and in many companies, the CFO has become a natural successor to the CEO. Apart from corporate...

...wining in tic-tac-toe game given that you make the first move. To obtain hypothesis bases on my goal I have to state some conditions and facts on the game. They are: 1) There are 362, 880 ways of placing O’s and X’s. 2) When X make first move, possibility of X winning is 131,184, O winning is 77, 904, and 46, 080 tied games (Source: http://en.wikipedia.org/wiki/Tic-tac-toe). After eliminating rotations and/or reflections of other outcomes, there are only 138 unique outcomes. X won 91 times, O won 44 times and 3 ties (Source: http://en.wikipedia.org/wiki/Tic-tac-toe). Basically, the win of X is the concept. There are 8 possible ways of creating three X in row. Based on this my hypothesis states:
Hypothesis
“If X makes the first move then the probability of the player with X will win is 60% and above.”
Null Hypothesis
“If X makes the first move then the probability of the player with X will win is less than 60%.”
Data Collection and Preparation
To prove or refute the hypothesis, data has to be collected. As we all know this step requires a great amount of time and effort. Also in order to build an effective model a data mining algorithm must be presented with a few hundred or few thousands relevant/applicable records. As mentioned above there are thousands of winning combinations, I have collected datasets with 958 instances which encodes set...

...TicTacToe in C++ Programming Language
Abstract:
Tictactoe is a great mental exercise used to improve the thought process in children and adults, tictactoe 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 tictac 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...

...WRITING AN ESSAY: Using the “Tic-Tac-Toe” Method
X X O
O
X
Workshop sponsored by:
The Dr. Mack Gipson, Jr., Tutorial and Enrichment Center
Presented by: Carole Overton, Director Dr. Mack Gipson, Jr., Tutorial and Enrichment Center Gipson Building Paine College 706-821-8345
Dr. Mack Gipson, Jr., Tutorial and Enrichment Center 5-Paragraph College Essay Structure Parts Title Description                      is centered on top line in not underlined or bolded is not in quotations is written with proper capitalization catches the reader’s attention and makes him interested in reading the essay starts with a general statement, question, or “attention-grabber” ends with your thesis statement that tells the reader what you will be talking about and what your 3 main points are develops your first main point starts with a topic sentence that states MP1 contains at least 3 sentences (S1, S2, S3), each of which gives a supporting detail (each of these sentences may be further developed with sub-support sentences (SS1, SS2, SS3, etc.) ends with a conclusion sentence which summarizes or wraps up MP1 develops your second main point starts with a topic sentence that states MP2 contains at least 3 sentences (S1, S2, S3), each of which gives a supporting detail (each of these sentences may be further developed with sub-support sentences (SS1, SS2, SS3, etc.) ends with a conclusion sentence which summarizes...

...them about it and find out their opsand then write a report for me? Any information or suggestions about this proposed scheme would be welcome.” Proposed Incentive Scheme Terms of reference Mr Jules Laval, Office Manager, has asked me to write this report on a proposed incentive scheme offering rewards, possibly financial, to members of staff for money-saving or ways to improve work practices.
Proceedings
A sample of workers were questioned individually and asked for their opinions.
Findings
Most workers thought an incentive scheme was a good idea.
The majority of these preferred financial reward as an incentive.
Some workers suggested time off instead.
A few thought it was the job of management to come up with new ideas
Conclusions
In general most workers were in favour of an incentive scheme offering financial rewards.
Ⅰ
Brief Introduction
（
20 minutes
）
1.
Business English Writing: ESP: English for special purpose
EVP: English for
vocational
purpose
V
ocational: To deal with matters concerning business.
To sum up: Business English Writing is practical in business circle.
2.
Writing is a two-way process.
For
every
writer
there
must
be
a
reader.
The
major
portion
of
business
is
transacted
by
or
through the written letter, memo, bulletin, or report. For...

...company you wish to study. Suggest one creative promotional method to solve the problem. You need to specify the target audience, objectives with creative and media commendations to achieve intended objective.
TicTac is the only Ferrero brand that is not made of chocolate and one of the first pocket sweets on the market.It is known for being a practical and a refreshing product but competitors are numerous. The problem is that, since 2007, the pocket sweets market has dropped by 5, 5% in value, by 4, 4% in volume and 60% of the sweets sold are sugar free. TicTac suffers from this decline and this hard competition and its market share dropped by 1, 1% between 2008-2009.
Moreover, people in the world are bigger gum consumers than sweet consumers and many competitors such as Cadburry Schweppes and Solinest offer sugar free, healthier, tastier or more innovative products.
How can TicTac keep its market share given the regression of pocket sweets consumption? What kind of creative promotional method should TicTac use to solve this problem?
Analysis of the Market
To stress and develop a new communication campaign, the first thing to do is to analyze the market in which TicTac makes is business. The market situation of TicTac is the pocket sweets market
|Strengths...