Tic Tac Toe Game Amna Msalam & Rehan Alashqar Supervised By: Dr. Aladdin Masri & Dr. Emad Natsheh.

Slides:



Advertisements
Similar presentations
Light Led Panel Esraa Nassar Mona Amer Supervisor : Dr.Ashraf Armoush.
Advertisements

EMS1EP Lecture 5 Digital Outputs Dr. Robert Ross.
MM Player Supervised by: Dr. Luai Malhis. Prepared by: Mustafa Assaf & Mahmoud Musa.
Tic Tac Toe size(600,600); Aim: How can we set up our canvas and display for a Tic Tac Toe game? 1. Sketch the two drawings and write the two code.
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Presented by : Ashin Ara Bithi Roll : 09 Iffat Ara Roll : 22 12th Batch Department of Computer Science & Engineering University of Dhaka.
VEX Robotics Platform and ROBOTC Software Introduction.
OutLine Overview about Project Wii Robot Escaper Robot Problems and Solutions Demo.
Introduction.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Camera Aided Robot Progress Report.
Design and Implementation of Metallic Waste Collection Robot
Embedded Programming and Robotics Lesson 5 Motor Control 1.
VEX Robotics Platform and ROBOTC Software
Lab 2: Capturing and Displaying Digital Image
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class 2.
Introduction to the VEX ® Robotics Platform and ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Final project by : Mohamed Soliman Ostalab Robotic Arm.
Mobile Controlled Car Students : Tasneem J. Hamayel Hanan I. Mansour Supervisor : Dr.Aladdin.
Contents : Introduction Why this project? Abstract Features Problems Implementation Recommendations Demo.
I Robot.
WELCOME TO ARDUINO E-DAY CAR PROJECT MEETING – ITALY MARCH.
CSCI-100 Introduction to Computing Hardware Part II.
IN 1900 ICT Project Final Presentation. Group name : Code Squad.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
CONTENTS Objective Software &Hardware requirements Block diagram Mems technology Implementation Applications &Advantages Future scope Conclusion References.
ISA CLICK CONTROL #38 – FALL 2014 ERIC BRUNNGRABER DRAKE ISABIRYE.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Pick N Place Robot. Pick N Place Robot Introduction:  Pick and Place robot is the one which is used to pick up an object and.
Computers and Programming
Freshman project Robotic arm control using webcam
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
VEX® Robotics Platform and ROBOTC Software
Computer Graphics Lecture 1 Introduction to Computer Graphics
Smart Parking Application
Hand Gestures Based Applications
Obstacle avoiding robot { pixel }
Scrolling LCD using Arduino.
Home automation using Arduino & ‘PIR sensor’
VEX® Robotics Platform and ROBOTC Software
connect a DC-Motor with an arduino
Computer Architecture & Operations I
Automatic human detector garbage can.
cyBorg 1.0 Project by Team ROBOTECH The Green PAFIANS
Next Level Tic-Tac-Toe
VEX Robotics Platform and ROBOTC Software
Monitoring Robot Prepared by: Hanin Mizyed ,Abdalla Melhem
Air Hockey Robot Students: Abdullah Ahmad & Moath Omar Supervisor:
Artificial Intelligence for Speech Recognition
COMP3710 Artificial Intelligence Thompson Rivers University
Smart Car Robot Prepared by Supervised by Mai Asem Abushamma
DIGITAL CALCULATOR USING 8051
‘SONAR’ using Arduino & ultrasonic distance sensor
Prepared By : wala’ Hamad Khayrieh Homran
FlowArm PLTW Programming
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Board: Objects, Arrays and Pedagogy
Welcome to Digital Electronics using the Arduino Board
VEX® Robotics Platform and ROBOTC Software
VEX® Robotics Platform and ROBOTC Software
ECE 477 Digital Systems Senior Design Project  Spring 2006
SPREADSHEET BEGINNERS LEARNING OUTCOME 1
VEX® Robotics Platform and ROBOTC Software
Sensors and actuators Sensors Resistive sensors
VEX® Robotics Platform and ROBOTC Software
COMP3710 Artificial Intelligence Thompson Rivers University
UNIT 11: RC-SERVOMOTOR CONTROL
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Introduction to Arduinos
Unit II Game Playing.
Presentation transcript:

Tic Tac Toe Game Amna Msalam & Rehan Alashqar Supervised By: Dr. Aladdin Masri & Dr. Emad Natsheh

Topics to be discussed!???  introduction  Tic Tac Toe(Description)  Why this project?  Project Features  Problems  Project implementation  Recommendations and Future work  Demo

introduction  Games provide a real source of enjoyment in daily life.  Games also are helpful in improving the physical and mental health of human. Apart from daily life physical games, people also play computer games. These games are different than those of physical games in a sense that they do not involve much physical activity rather mental and emotional activities.

introduction  Our project name is Tic-Tac-Toe. This game is very popular and is fairly simple by itself. It is actually a two player game, zero-sum game (gain equals the loss of other).  In this game, there is a board with n x n squares. In our game, it is 3 x 3 squares. The goal of Tic-Tac-Toe is to be one of the players to get three same symbols in a row - horizontally, vertically or diagonally - on a 3 x 3 grid.

Tic Tac Toe(Description)  Our project is a Tic Tac Toe game which consist of a robot that paly against human player depend on the picture that a software program take it and analysis the image using alpha beta algorithm then send command to Arduino to make the robot take the piece from specific position and move it to one of the nine positions depend on which player was play, when the game finished and if the robot win music will start.

Why this project?  As Artificial intelligence technology occupies the world, it becomes an essential part of all the fields around us; it aims to become more interactive and interesting.  So we try to employee artificial intelligence to play Tic Tac Toe in more interesting way.

Project Features  The game can start by any one of the two player.  The main features of our project that we can play any level of tic tac toe with the robotic arm (Simple, Medium, Hard).  The result after the game finish will see on the LCD.  After the game finished we put sound of music in microcontroller to control the music voice on or off depending on the result of the game.  The game can detect if the player play or not by itself without click any button to hint it.

Project implementation We divided the project into three parts Software part. Hardware implementation.

Software part  We build application by using visual basic program to deal with the hardware part. This application consist of three parts these are communicate with each other to play a Tic Tac Toe game between robot and human player using the image processing to analyze the picture from camera and the alpha beta algorithm to determine the suitable position for the robot.

Software part This picture show the application to interacts with the hardware part.

Software part  First part is a TicTacToe class this class control the board in the project the class consist off 3*3 array and function to set the current player may be player X or player O in the specifid position in the array, the psistion in the array speciefied by the AI algorithim in AI class for the player O, and when any position in the array is set by any player there is two function to detect the win or the eqality.  Second part is a TTTAI class this class will detect the best move for the robotic arm (Player O)

Software part  The third part in the program is the frame window that shown to the user, this frame consist of web cam with size of 360*360 pixel to open the web cam connected to computer,Picture Box which consist the picture taken by the camera every 200 milliseconds.

Hardware part  First we constructed a mechanical arm capable of manipulating pieces to play the game.  Then in this part we determine the values for each motor on each position for the nine positions and store the values in different functions, then depend on the command received by serial we control the arm.  Lastly and the most important was the development of code to translate move of the tic-tac-toe program into actions of the physical system

Analysis System Design

Robot Design We analyzed our project, searching through the internet of hardware component available, then we find that the best design for our project like this picture put this arm require 6 servo motors, but we reduce the number of servo motors to four to reduce the cost and the code needed to control all motors and can perform what we need use just four servo motors.

Components  A robotic arm with gripper  Microcontroller  4 servo motors  Board of 3 x 3 squares  Red and white pieces  LCD  ISD1820 module for music  Web cam  Power supply

Microcontroller: Arduino UNO Microcontroller : ATmega328P 14 digital input/output pins (of which 6 can be used as PWM outputs). 6 analog inputs.

Servo motor We use the MG996R with high torque (metal servo) because this type of servo endure high torque and if we use the plastic motor may be damaged fast, although we use metal servo this servo interrupt and stopped suddenly while we are working and the servo need time to become available so we start repair the suspended motor and we succeed fixed it so we don’t need to bought new one

Servo motor We use four servo motors to control the movement of the robotic arm to access the nine positions of the 3*3 board and to access the position where the piece is found. Servo motor with its components Internal contents for servo motor

ISD1820 This component is used to store music on it and when the robot win this music play.

Powers sources First we use power charger with 5 volt and 2 ampere but because this charger not get the exact ampere needed to control the four servo motors of the robotic arm this cause the movement of the arm with shaking so to solve this problem we use power supply to get the motors the specific ampere it needed. Power charger Power supply

Problems  The components of the project is not available all the time.  One month to get the basic components.  Sudden damage in two motors and the motors become not available in market may reach after two weeks or more so we will try to fix its and we success do that.

Problems The servo motors require 5 volt and 2 amperes to work well, we buy power charger with 5 volt and 2 amperes, but the first two months the robotic arm suffer from shaking, we thought this because the arm not connected successfully, but we find that the vibration was caused by the charger because not give the suitable ampere, so we used the power supply from university lab to solve the problem.

Recommendations and Future work  Before using any component make sure that is available and suitable for your project.  Using this robot for play more than one game with human according to the selected game from the application like chess game,collecting sheets with colors and Tic Tac Toe game.

Demo

// هاي السلايد للفيديو خليتها فاضية

Thank you for your attention :)