Preview

TIc tac toe

Good Essays
Open Document
Open Document
1829 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
TIc tac toe
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 by faster response for different technical problems and relatively easier to use (Moore, 2012). In addition, MATLAB is optimized for matrix calculations and regularly updated. Thus MATLAB extensively spread and used by control engineers for analysis and design of projects.
Tic-tac-toe. Simple games that do not require complicated animation and graphics can be created in the MATLAB environment with help of basic commands such as ‘if’, ‘else’, ‘elseif’ and etc. Tic-tac-toe could be an excellent example of programming the game. It is a quick logical game for two players, who seek in alternative turns to fill



References: Moore, H., 2012. MATLAB for Engineers, 3rd ed., Edinburgh: Pearson Education. Summary of the efforts

You May Also Find These Documents Helpful

  • Good Essays

    the puzzle game

    • 500 Words
    • 2 Pages

    The puzzle game is a short story written by Patricia D. Maida and Nicholas B Spornick. This short story explains the reasoning behind almost all detective stories. The puzzle game demonstrates how all detective stories follow a “puzzle tradition” that produce the reader with intrigue and intellectual stimulation. The puzzle games found in detective stories operate on multiple levels with varying complexities derived by an ingenious author. These games follow many variations and rules, but will never allow you to fully comprehend who the victim, the murder, and sometimes even who the sleuth is in the story. Two fascinating detective stories that follow the format of the puzzle game are “Silver Blaze” by Conan Doyle, and “The mysterious Affair” bye Christies.…

    • 500 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    Comp3652 Unit 2 Assignment

    • 1090 Words
    • 5 Pages

    For this assignment, you will be completing the implementation of an interpreter for fractal, a…

    • 1090 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    Unit 22 Asseement

    • 1496 Words
    • 6 Pages

    |Unit Title: |Unit Number: | |Developing computer games |22 | |Level of Award: 3 |Centre Number: 16405 | |Candidate Name: |Candidate Number: | |Learning Hours: 60 |Duration of Academic Year: 1 Term | |Unit Deadline: | |Assignment Brief Author: Mr Badhasha | |Tutor/Assessor | |Signed: |Date: | |Final Grade: |Date: | |Assignment Internal Verifier: | |Signed: |Date: | |Tutor/Assessor Comments: | |…

    • 1496 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    Case Analysis

    • 293 Words
    • 2 Pages

    5. You can be creative. The game does not have to be exactly like the wireframes, but it does have to be obvious that the game is Tic Tac Toe.…

    • 293 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lara, M. A., Myers, R., Frick, T. W., Aslan, S., & Michaelidou, T. (2010). A design case: Developing an enhanced version of the Diffusion Simulation Game. International Journal of Designs for Learning, 1(1). Retrieved from https://www.indiana.edu/~tedfrick/…

    • 112 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Battle Royale

    • 412 Words
    • 2 Pages

    The short story Battle Royal from the novel Invisible Man by Ralph Ellison is from the perspective of an African American man. The main character has a struggle of whether to be himself or to conform to be the black child that white men want him to be. He was immensely affected by the words uttered at his grandfather’s death bed. He said “Son, after I’m gone I want you to keep up the good fight. I never told you, but our life is a war and I have been a traitor all my born days, a spy in the enemy’s country ever since I give up my gun back in the reconstruction.”(pg.292).The main character realized that the he was falling in the same path as his grandfather and was beloved by the white men. He began to question what it said about him if he was like his grandfather who considered himself a traitor.…

    • 412 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Call of Duty

    • 577 Words
    • 3 Pages

    One of the most anticipated video games of the year, Call of Duty Black Ops II came out with a wave of anticipation and controversy. Questions and mystery surrounded the game as the previous ones failed to live up to lofty expectations. Treyarch, the designer of the first Call of Duty Black Ops was already at odds for mediocre product they had previously produced. There will always be players who love the game and those who hate it: however, for the new player is it worth paying the inflated price of 60 dollars? Overall, top to bottom, Call of Duty Black Ops II is a great game designed for the player to have countless hours of fun.…

    • 577 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Battle Royale

    • 514 Words
    • 3 Pages

    "Battle Royal" by Ralph Ellison is the story of a young, African boy, who withstands humiliation to give a speech amongst the towns leading white citizens at an event called a "Battle Royal." The story escalates when the boy‘s grandfather’s dying words were that he was a traitor and a spy in enemy’s country. The tension rises when the boy is blindfolded and made to participate in a boxing match with his fellow classmates against his wish. The climax occurs when the fight gets over and the boy is finally allowed to give his graduation speech in front of the white people resulting in the resolution as he receives a scholarship and feels safe from his grandfather, whose dying words usually spoiled his triumphs. Ellison implies that the southern white people still had control over the African Americans even after they were freed of slavery. The story also suggests that gaining freedom does not necessarily mean gaining equality. The civil war had ended but the African American still suffered racism.…

    • 514 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Punctuation checker, which consists of having the player place the proper punctuations in the sentence, useful for avoiding comma splice, and run-on sentences. And definitions where the player was asked to define the given word, mostly from the parts of speech. Students learn the proper way to write a sentence, and become aware of the different errors and how to fix them. to create this game, my partner and I used a white carboard where we placed vertically our index cards containing the number of points in the front, and the question on the back, hidden from the player. This game is played with no more than three people in a group, and only three groups allowed. The group with the most points wins the game.…

    • 743 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The Pavilion Checkers Classic Board Game provides a similar range of interactive possibilities that involve logical thinking and strategic planning with an opponent. At this stage, the young person begins top understand abstract thought, which involves moving various circular pieces in order to “jump” an opponent’s piece on the board. After jumping the other player’s piece, the player can take that piece until the opponent has lost all of his or her pieces. This game is a classic game that is not too difficult to learn, but it takes more logical mental strategies to be able to comprehend the game at this stage of…

    • 1589 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Abstract. The purpose of this project was to use constraint logic programming in Prolog to implement a solver for the 2D puzzle, Hanjie. For…

    • 9928 Words
    • 35 Pages
    Good Essays
  • Good Essays

    1) Write a program to illustrate bitwise operators. 2) Write a program to print all the alphabets and their equivalent ASCII values. 3) Write a program to calculate the sum of squares of first n natural numbers using while loop. 4) Write a program to illustrate short hand operators used in C. 5) Write a program to print the multiplication table in the following format. 1 1 2 3 4 5 2 2 4 6 8 10 3 3 6 9 12 15 4 4 8 12 16 20 5 5 10 15 20 25…

    • 1735 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Symbolic Variables

    • 1183 Words
    • 5 Pages

    Matlab has a powerful symbolic math ability. Rather than making calculations on known numbers, we can make calculations on symbolic expressions. For example, what is the limit as x approaches inf of 1 + 1/2^1 + 1/2^2 + 1/2^3...+1/2^n ? Matlab can tell us. What is the integral of x^3 for any x? Matlab can tell us.…

    • 1183 Words
    • 5 Pages
    Good Essays
  • Good Essays

    hopscotch

    • 579 Words
    • 2 Pages

    Most everyone has a favorite toy or game as a child that brings back or triggers good memories. No matter what age group you are, playing games or with toys were always a great time. During my childhood hopscotch was my favorite game therefore; I chose this for my assignment. The supplies used to make my hopscotch toy include the following.…

    • 579 Words
    • 2 Pages
    Good Essays