Project 1 Tic Tac Toe Assigned Mon, Sep 8, 2003 Due Mon, Sep 15, 2003.

Slides:



Advertisements
Similar presentations
Whiteboardmaths.com © 2004 All rights reserved
Advertisements

Graphics Shapes. Setup for using graphics You have to import the graphics library You can use either “import graphics” or “from graphics import *” or.
Geometric Construction Notes 2
PLANNING THE TIC TAC TOE GAME BY NEEL DAVE. TIC TAC TOE INSTRUCTIONS Tic Tac Toe Instructions The basic concept of Tic Tac Toe 1.This is a game for two.
Integer Tic Tac Toe Let’s Begin Rules: 1.Erase all x’s and o’s from the previous game before you begin. 2.Decide which player will be x’s and which will.
Drawing Objects with Illustrator 1.Start a new image in RGB mode. 2.Size 1024 X Unit = pixels 4.Go to View > Show Grid to turn on the grid. 5.Go.
3 rd Angle Projection A 3 rd Angle projection is a 2D drawing of a 3D object. It shows three views the side, plan and end view. The side view is drawn.
CONFIDENTIAL 1 Geometry Representations of Three- Dimensional Figures Geometry Representations of Three- Dimensional Figures.
Finding Distance by using the Pythagorean Theorem
2D and 3D Shapes. What is a shape? A shape tells how an object looks on the outside.
Definitions and Examples of Geometric Terms
Polygons Only one of these is a polygon. Do you know? A polygon MUST be a closed figure.
Mr. Barra Take The Quiz! Polygon with three edges (sides) and three vertices (corners) Sum of all interior angles equals 180° Right triangle One interior.
Perimeter Rectangles, Squares, and Triangles Perimeter Measures the distance around the edge of any flat object. To find the perimeter of any figure,
It is as easy as playing tic-tac-toe!. Make the vertical and horizontal lines of a tic- tac-toe game.
Objective: To describe properties 2 D shapes
M C S E A You have 5 minutes to answer each problem. Click when ready... Good Luck.
Polygons with 4 sides and 4 angles
Area (geometry) the amount of space within a closed shape; the number of square units needed to cover a figure.
Presentation On Shapes Basic Summary: On Shapes By Priyank Shah.
Review of Geometric Shapes
© A Very Good Teacher th Grade TAKS Review 2008 Objective 3 Day 2.
Area Formulas and Parallelograms
Saxon 6/5 Lesson 114 Pictures from
- Four sides - Four angles - Four vertices  - The diagonals are equal in length and perpendicular and bisect each other.
Welcome to... A Game of X’s and O’s Another Presentation © All rights Reserved
Warm Up Solve x = x = x = x + 32 = 180 Course Angles in Polygons.
8-4 Angles in Polygons Problem of the Day How many different rectangles are in the figure shown? 100.
By: Brianna Tillery, Troy Jones, and Silvestre Rojas.
Lesson 7 Rectangular Objects. Rectangle Command Rectangles with Vertices on the Origin Start from the origin End at the origin.
Chapter 7 Vocab Review. 1. Write the generic formula (proportion) for geometric mean (x) of two positive numbers a & b.
U1- L12 How many degrees are in a RIGHT ANGLE? What is the total number of degrees in a SQUARE? Divide that square in half, diagonally. How many degrees.
eNRICHing Shape & Space Bromley February 2015.
5.7: Proofs Using Coordinate Geometry Expectations: G1.1.5: Given a line segment in terms of its endpoints in the coordinate plane, determine its length.
Shapes, Shapes, Shapes By: Ms. Kelly Purpose What is the title of the book ? Is this book fact or fiction? How many shapes are discussed in the story?
Definition: Rectangle A rectangle is a quadrilateral with four right angles.
9-4 Polygons in the Coordinate Plane Learn to draw polygons in the coordinate plane and find the lengths of their sides.
CHAPTER 1: Points, Lines, Planes, and Angles Section 1-2 Points, Lines, and Planes.
NCSC Sample Instructional Unit - Elementary Measurement Lesson 4
Tic tac toe XX PC: X YOU: O The PC-player with mark X goes first. After the PC, you place the mark O at the position of a green circle. If you succeed.
Constructing Square Roots of Positive Integers on the number line
BELL RINGER (THINK, PAIR, SHARE) 1. List as many properties as you can about the sides, angles, and diagonals of a square and a rectangle.
Polygon ProjectPolygon ProjectPolygon ProjectPolygon Project Polygon ProjectPolygon ProjectPolygon ProjectPolygon Project.
Please open JCreator and follow these steps: 1)Configure  Options 2)JDK Tools 3)Choose Run Applet from drop-down 4)Click Default, then Edit 5)Click the.
Finding the Area of Polygons Rectangles Parallelograms Triangles Trapezoids.
7-1C Areas and Perimeters of Similar Polygons What is the relationship between the perimeter ratios of similar figures and their similarity ratio? What.
Objectives To develop knowledge of the vocabulary and terminology of shape. To consider activities to develop children's understanding of shape. To examine.
EXPLORERS: GEOMETRY. Mystery Shape Geoboard  Uses only one rubber band  No crossovers with the rubber band  Must have area (space) within.
Polygons Only one of these is a polygon. Do you know? A polygon MUST be a closed figure.
Solid Shapes. The basics ♥Polygon – 2 space ♥Polyhedron = 3 space ♥Polyhedra or Polyhedrons = plural ♥ A Polyhedron is a closed figure, made up of polygons.
Intro to One Point Perspective landscape drawing Mrs. Moore May 2012.
Quadrilaterals - 4 sided shapes Which quadrilaterals do you know? What do you know about them? Aim: To learn to identify the important quadrilaterals and.
Types of triangle 1. right angle 2. isoceles 3. equilateral 4. scalene
2D Shapes.
Using One Point Perspective to Combine Shapes
Lesson 8-1 Angles of Polygons Lesson 3-4: Polygons.
1.6 Two Dimensional Figures
Chapter 2 Justification and Similarity
Perimeter Area and Circumference
Projection of PLANE.
Lesson 2.8 The Coordinate Plane
Unit 10: 2-Dimensional Geometry
All About Shapes! Let’s Go!.
SHAPES By: Ms. Conquest.
L.O Read and plot coordinates in all quadrants
Quadrilaterals Properties Quadrilaterals Properties
2019 SAIMC Puzzle Challenge General Regulations
Unit II Game Playing.
2D shapes.
The Pythagorean Theorem a2 + b2 = c2
Presentation transcript:

Project 1 Tic Tac Toe Assigned Mon, Sep 8, 2003 Due Mon, Sep 15, 2003

Tic Tac Toe Read the handout.handout Download the files. TicTacToe.cpp player.h player.cpp set.h point2.h Download the demo. TicTacToe.exe

Tic Tac Toe Your job is to provide the graphics for The game grid. The X’s. The O’s. The winning line. You may also set the background color if you like.

Drawing the Game Grid The game grid is the traditional 3 x 3 board. It consists of two horizontal bands and two vertical bands.

Drawing the Game Grid The 9 empty squares formed by the grid should have length and width equal to cellWidth. The thickness of the grid lines should be equal to gridWidth.

Drawing the Game Grid The world coordinates are set up so that the origin (0, 0) is at the lower left corner of the game grid. x y (0, 0) cellWidth gridWidth

Drawing an X The X should be drawn as a polygon. It should have squared-off corners.

Drawing an X The diagonals should be drawn at 45  angles. Each side of a corner should be equal to ½ of gridWidth. ½ of gridWidth

Drawing an X The space between the X and the cell edges should be equal to cellPad. cellPad

Drawing an O The thickness of the O should be gridWidth and the padding should be cellPad. The O should be round like a circle. You must use polygons to draw the O.

Drawing the Winning Lines Horizontal and vertical winning lines are rectangles with length equal to the size of the game grid and width equal to gridWidth. The diagonal winning lines are similar to the diagonals of the X, but they extend from one corner of the game grid to the other.

Drawing Polygons Keep in mind that OpenGL assumes that all polygons are convex. If you try to draw non-convex polygons, the results are unpredictable.