Interactive Tic Tac Toe

Size: px
Start display at page:

Download "Interactive Tic Tac Toe"

Transcription

1 Interactive Tic Tac Toe Stefan Bennie Botha Thesis presented in fulfilment of the requirements for the degree of Honours of Computer Science at the University of the Western Cape Supervisor: Mehrdad Ghaziasgar Co-supervisor: Reg Dodds April 2016

2 ii

3 Declaration I, Stefan Bennie Botha, declare that this thesis Interactive Tic Tac Toe is my own work, that it has not been submitted before for any degree or assessment at any other university, and that all the sources I have used or quoted have been indicated and acknowledged by means of complete references. Signature: Date: Stefan Bennie Botha. iii

4 iv

5 Abstract The game tic tac toe had an early variant which began in the first century in the Roman Empire. During that time it was called Terni Lapilli where the players only had three pieces and had to move around the empty spaces to play. The actual game of tic tac toe could be traced back to ancient Egypt. The game was also known during that time as Three Men s Morris. The first reference to Noughts and crosses was made in 1864 in a British novel called Can You Forgive Her. For many years the game was referred to as noughts and crosses but was changed in the 20th century by the United States to tic tac toe. This paper will consist of a user requirements document as well as a requirements analysis document. The pupose of this paper is to create a program by which the user can play a game of tic-tac-toe using a sheet of paper as well a pen. The program will pick up the changes on the sheet of paper and superimpose its move on the screen showing the user which move was made. Various requirements will be handled in this paper with the help of one image to explain effectively what is happening. This project is designed purely for the sake of interest sake and thus has no real need at this current point. v

6 vi

7 Key words Support Vector Machine Visual Programming Graphical User Interface Requirements Analysis Document User Requirements Document vii

8 viii

9 Acknowledgment I would like to thank my supervisor Mr. G Ghazi as well as my co-supervisor Mr. R Dodds for their assistance with designing my project. Their help and support was really appreciated immensely and I would not be where I am today without their help. ix

10 x

11 Contents Declaration Abstract Key words Acknowledgment iii v vii ix List of Figures xiii Glossary xv 1. User Requirements Document Introduction User s view of the problem Requirements expected from program Requirements not expected from the solution Requirements Analysis Document Introduction Designer s perspective Existing solutions First Solution Second Solution Third Solution Best solution Testing Conclusion Bibliography xi

12 xii

13 List of Figures 1.1 Interactive Tic Tac Toe Representation xiii

14 xiv

15 Glossary SVM Support Vector Machine. RAD Requirements Analysis Document. URD User Requirements Document. CSV Comma separated variables. OpenCV Library used in Python for image processing. RASAC Random Sample Consensus. Custom Library designed and used in research paper. SURF Speeded Up Robust Features. Custom created method used in research paper. xv

16 xvi

17 Chapter 1 User Requirements Document 1.1 Introduction The user requirements document (URD) serves as a description of the user. It explains how the user sees the project by explaining it in a non- technical form. The URD will cover topics such as: the user s view of the problem, what is expected in the software solution and what is not expected. The first topic that will be discussed will be the user s view of the problem. This section will explain what the user wants to be implemented. Topics such as the requirements expected from the project will be discussed as well as what is not required. The URD will serve as the main source of information regarding how to build/construct the project to meet the exact specifications of the user. 1.2 User s view of the problem A interactive tic-tac-toe program is needed where the player will be able to play against the computer by using a piece of paper and a web camera. The camera will be mounted facing the sheet of paper at all times in order to prevent confusing the program by introducing different angles. The player draws a grid on the paper which will serve as the game board for the current match. When the player makes their move on the paper, the program will pick up this change on the board and make its move by superimposing a image representing its move towards the user on the screen. The game will end when one of the players is considered a winner or when it is considered as a draw when all entries are filled with symbols. 1

18 Requirements expected from program This section will explain in bullet form a few expected requirements regarding what the program should do.the requirements regarding this project/program will be listed below: This game has to be able to run on most modern computers and also on any Windows or Linux system supporting the Python environment. The game should be user friendly. The game should be easy to set up. The external peripherals should not be expensive. It should be flexible and be able to work on any similar web cam to the one currently in use Requirements not expected from the solution This section will explain in bullet form a few expected requirements regarding what the program should not do.what is not expected from the solution will follow below: The program should not be able to detect any other game on paper that is not related to tic-tac-toe. The game should not be slow and tedious to play. The program should not be complex to use. The game should never crash at any moment. The program is not expected to track games with the camera at a angle to the paper. The program is not expected to work under poor light conditions.

19 3 The figure below explains visually how the game will be played. Starting from the left side the computer will display the tic-tac-toe grid on the screen. Following the arrow the web cam will proceed to pick up the grid or any changes made withing the grid. The next arrow represents the move the player made on the sheet of paper. Lastly the change is picked up by the program and its move is made by superimposing a image representing their symbol on the screen. This cycle is repeating until a winner emerges or a draw occurs. Figure 1.1: Interactive Tic Tac Toe Representation

20 4

21 Chapter 2 Requirements Analysis Document 2.1 Introduction The requirement analysis document (RAD) explains how the program will work in more detail. In this document there will be various sections and subsections explaining what this program will consist of. This document will consist of a designers perspective, the identifying of existing solutions, deciding the best current solution and various ways to test the solution. The designer s will explain the requirements needed regarding how this program will be implemented Designer s perspective This section will discuss what needs to be done from the designer s perspective. This section also consists of possible attributes which will be considered when designing the program. The program will consist of a web camera picking up a drawn tic tac toe board on a clean piece of paper. The program should detect the board on the sheet of paper and notify the player that the game has begun. The game will continue to be played until all the white space inside the board is filled by a symbol or when three identical symbols are detected in a vertical, horizontal or diagonal line. The following bullet points represented below will provide more detail concerning this project. A mounted hi-definition web camera will be used,facing the sheet of paper, to ensure that a clear picture is provided to the user. A normal desktop computer will be used in order to create this program. 5

22 6 This program/game will be played strictly indoors to limit any changes in light affecting the program. The program will be written in the Python programming language using the OpenCV library. The OpenCV library will handle the image processing needed by this project. The board and the symbols will be converted into grayscale to eliminate the factor of which colours are used for the symbol or board. A Support Vector Machine (SVM) will be used to train the program on how to recognize different symbols as well as picking up the grid. The information given above demands the player to play in a controlled environment to ensure that the program will not crash or exit unexpectedly Existing solutions This section will cover different possible solutions which could be implemented in order to solve the problem. In each subsection, a different solution will be described in high-level which could provide some oversight as to what needs to be done First Solution A possible solution was created by Maguire and Saltzman (Joe Maguire, 2014) where by they implemented this project successfully by doing the following. They started by breaking down their algorithm into three parts: Acquiring the homography,in other words the board; detecting if the player moved and updating the projected board. To acquire the board they processes the current frame using the Speeded Up Robust Features (SURF) algorithm. They wanted to take advantage of the fact that the board consisted of four lines initially, but it turned out to be picking up too much noise as the camera was moving further away from the board. The SURF algorithm worked exceptionally well since it was able to pick up key points, which are the edges of the board very well when a marker was used to draw the board. To discard false key points they used the Random

23 7 Sample Consensus (RASAC) feature. In order to pick up the symbols they used a OpenCV function called matchtemplate which was used after they took the nine subsections of the board, each corresponding where the player could potentially draw a symbol. To update the board they created an artificial intelligence agent called MinMax which detects any movement on the board between 5 10 frames per second. This method turned out to be robust since the camera had to mounted close to the board but it still did the job. In other words template matching was used to locate the grid effectively Second Solution Another solution could be to read in images instead of a real-time feed from the web camera. The pictures would then eliminate the factor of the player s hand coming into play. The program can be considered as much simpler to create and also eliminates a fair amount of problems that can occur. The picture can then be converted into grayscale which eliminates the variety of colours the player might use. After the conversion, a histogram can be used to detect any non-white pixels on the board which could potentially be the lines of the board. The use of morphological operations can also be applied to reduce the amount of noise found in the images. This solution will be programmed in Python using the OpenCV library. A artificial intelligence agent will need to be created which will play against the user. The program will also require some training to detect what each symbol as well as what the board will look like. A decision will then be made by the program whether the game has started according to what player has drawn on the page Third Solution This solution consists of using real-time Haar-cascades and other morphological operations. All tic tac toe boards have similar features which means by using Haar-cascades the same Haar-features will be used to detect every

24 8 board. By using morphological operation, the image can be cleaned up by removing any noise captured by the camera. This will, however demand more performance in order to be executed. The reason this would require more performance would be that thousands of Haar-Cascades will be applied to every real-time image. Other sections of this solution will be considered similar to the second solution mentioned above meaning that this solution will also require some training to be done as well as an artificial intelligence agent to be created. This solution will also be created in Python since it is an flexible and easy to understand programming language Best solution This section will discuss which solution is considered to be the most effective and easiest to implement. This section will also discuss some reasons as to why this solution is considered. All the above solutions are very promising to yield results, but the second solution seems like an effective solution to implement. The reason why this solution was chosen was not because it is easier to implement but it serves as an good starting point to serve a basic program towards the user. This solution, however could evolve in the future to meet all of the requirements set out by the user which allows this to serve as a prototype in the meantime. The fact that the image is converted into grayscale would also make the computations easier to calculate since the array elements for each picture is considerably less. Another reason why the second solution was chosen was because the Haar-Cascade is used for detecting faces which is not needed since this project does not detect faces but rather tic tac toe boards Testing This section will touch briefly on how one can test this program to make sure it is working effectively. The steps to testing will be listed in bullet form and will follow below. Compile the code and check if any errors occur.

25 9 Test if the board and symbols are recognized by the program. Test the web cam by taking example pictures and displaying them back to the screen. Test the tic tac toe algorithm. The above steps are general testing steps to ensure that the code is in working order and that it is ready to run as the program.

26 10

27 Chapter 3 Conclusion This tic tac toe project seems quite the interesting and challenging project to accomplish. By designing a RAD, to explaining logically how to meet the user s requirements mentioned in the URD, will indeed be helpful during project implementation. By discovering various solutions it shows that this project is in fact possible if not easy to create. The use of image processing, by using OpenCV, and its morphological operations will serve as a starting point to begin this project. 11

28 12

29 Bibliography Joe Maguire, D. S. (2014). Augmented reality tic-tac-toe. Technical report, Department of Electrical Engineering. 13

The Interactive Visual Picross Solver (IVPS)

The Interactive Visual Picross Solver (IVPS) The Interactive Visual Picross Solver (IVPS) Ntsikelelo Sonjica Thesis presented in fulfilment of the requirements for the degree of Honours in Computer Science at the University of the Western Cape Supervisor:

More information

CSC 110 Lab 4 Algorithms using Functions. Names:

CSC 110 Lab 4 Algorithms using Functions. Names: CSC 110 Lab 4 Algorithms using Functions Names: Tic- Tac- Toe Game Write a program that will allow two players to play Tic- Tac- Toe. You will be given some code as a starting point. Fill in the parts

More information

Number Plate recognition System

Number Plate recognition System Number Plate recognition System Khomotso Jeffrey Tsiri Thesis presented in fulfilment of the requirements for the degree of Bsc(Hons) Computer Science at the University of the Western Cape Supervisor:

More information

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm Weight: 8% Individual Work: All assignments in this course are to be completed individually. Students are advised to read the guidelines

More information

Taffy Tangle. cpsc 231 assignment #5. Due Dates

Taffy Tangle. cpsc 231 assignment #5. Due Dates cpsc 231 assignment #5 Taffy Tangle If you ve ever played casual games on your mobile device, or even on the internet through your browser, chances are that you ve spent some time with a match three game.

More information

FACULTY MENTOR Khoshabeh, Ramsin. PROJECT TITLE PiB: Learning Python

FACULTY MENTOR Khoshabeh, Ramsin. PROJECT TITLE PiB: Learning Python PiB: Learning Python hands-on development skills to engineering students. This PiB is a set of independent programs that strengthen the student s programming skills through Python, utilizing Python libraries

More information

EXPLORING TIC-TAC-TOE VARIANTS

EXPLORING TIC-TAC-TOE VARIANTS EXPLORING TIC-TAC-TOE VARIANTS By Alec Levine A SENIOR RESEARCH PAPER PRESENTED TO THE DEPARTMENT OF MATHEMATICS AND COMPUTER SCIENCE OF STETSON UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR

More information

Unit 12: Artificial Intelligence CS 101, Fall 2018

Unit 12: Artificial Intelligence CS 101, Fall 2018 Unit 12: Artificial Intelligence CS 101, Fall 2018 Learning Objectives After completing this unit, you should be able to: Explain the difference between procedural and declarative knowledge. Describe the

More information

Training a Neural Network for Checkers

Training a Neural Network for Checkers Training a Neural Network for Checkers Daniel Boonzaaier Supervisor: Adiel Ismail June 2017 Thesis presented in fulfilment of the requirements for the degree of Bachelor of Science in Honours at the University

More information

Embedded Systems Lab

Embedded Systems Lab Embedded Systems Lab UNIVERSITY OF JORDAN Tic-Tac-Toe GAME PROJECT Embedded lab Engineers Page 1 of 5 Preferred Group Size Grading Project Due Date (2) Two is the allowed group size. The group can be from

More information

Introduction to ABB Labs. TA s: Ryan Mocadlo Adam Gatehouse

Introduction to ABB Labs. TA s: Ryan Mocadlo Adam Gatehouse Introduction to ABB Labs TA s: Ryan Mocadlo (mocad@wpi.edu) Adam Gatehouse (ajgatehouse@wpi.edu) Labs In-depth lab guidelines found on Canvas Must read before coming to lab section Total of 4 Labs: Lab

More information

ENHANCING THE PERFORMANCE OF DISTANCE PROTECTION RELAYS UNDER PRACTICAL OPERATING CONDITIONS

ENHANCING THE PERFORMANCE OF DISTANCE PROTECTION RELAYS UNDER PRACTICAL OPERATING CONDITIONS ENHANCING THE PERFORMANCE OF DISTANCE PROTECTION RELAYS UNDER PRACTICAL OPERATING CONDITIONS by Kerrylynn Rochelle Pillay Submitted in fulfilment of the academic requirements for the Master of Science

More information

UNIT-1 INTRODUCATION The field of robotics has its origins in science fiction. The term robot was derived from the English translation of a fantasy play written in Czechoslovakia around 1920. It took another

More information

Intro to Java Programming Project

Intro to Java Programming Project Intro to Java Programming Project In this project, your task is to create an agent (a game player) that can play Connect 4. Connect 4 is a popular board game, similar to an extended version of Tic-Tac-Toe.

More information

AN EFFICIENT APPROACH FOR VISION INSPECTION OF IC CHIPS LIEW KOK WAH

AN EFFICIENT APPROACH FOR VISION INSPECTION OF IC CHIPS LIEW KOK WAH AN EFFICIENT APPROACH FOR VISION INSPECTION OF IC CHIPS LIEW KOK WAH Report submitted in partial fulfillment of the requirements for the award of the degree of Bachelor of Computer Systems & Software Engineering

More information

Tic-Tac-Toe and machine learning. David Holmstedt Davho G43

Tic-Tac-Toe and machine learning. David Holmstedt Davho G43 Tic-Tac-Toe and machine learning David Holmstedt Davho304 729G43 Table of Contents Introduction... 1 What is tic-tac-toe... 1 Tic-tac-toe Strategies... 1 Search-Algorithms... 1 Machine learning... 2 Weights...

More information

Seam position detection in pulsed gas metal arc welding

Seam position detection in pulsed gas metal arc welding University of Wollongong Research Online University of Wollongong Thesis Collection 1954-2016 University of Wollongong Thesis Collections 2003 Seam position detection in pulsed gas metal arc welding Hao

More information

Tic-tac-toe. Lars-Henrik Eriksson. Functional Programming 1. Original presentation by Tjark Weber. Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23

Tic-tac-toe. Lars-Henrik Eriksson. Functional Programming 1. Original presentation by Tjark Weber. Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23 Lars-Henrik Eriksson Functional Programming 1 Original presentation by Tjark Weber Lars-Henrik Eriksson (UU) Tic-tac-toe 1 / 23 Take-Home Exam Take-Home Exam Lars-Henrik Eriksson (UU) Tic-tac-toe 2 / 23

More information

STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG

STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI UNIVERSITI MALAYSIA PAHANG STRESS DETECTION USING GALVANIC SKIN RESPONSE SHAHNAZ SAKINAH BINTI SHAIFUL BAHRI This thesis

More information

Lab 7: 3D Tic-Tac-Toe

Lab 7: 3D Tic-Tac-Toe Lab 7: 3D Tic-Tac-Toe Overview: Khan Academy has a great video that shows how to create a memory game. This is followed by getting you started in creating a tic-tac-toe game. Both games use a 2D grid or

More information

Automatic Electricity Meter Reading Based on Image Processing

Automatic Electricity Meter Reading Based on Image Processing Automatic Electricity Meter Reading Based on Image Processing Lamiaa A. Elrefaei *,+,1, Asrar Bajaber *,2, Sumayyah Natheir *,3, Nada AbuSanab *,4, Marwa Bazi *,5 * Computer Science Department Faculty

More information

Coin Cappers. Tic Tac Toe

Coin Cappers. Tic Tac Toe Coin Cappers Tic Tac Toe Two students are playing tic tac toe with nickels and dimes. The player with the nickels has just moved. Itʼs now your turn. The challenge is to place your dime in the only square

More information

AN APPROACH TO ONLINE ANONYMOUS ELECTRONIC CASH. Li Ying. A thesis submitted in partial fulfillment of the requirements for the degree of

AN APPROACH TO ONLINE ANONYMOUS ELECTRONIC CASH. Li Ying. A thesis submitted in partial fulfillment of the requirements for the degree of AN APPROACH TO ONLINE ANONYMOUS ELECTRONIC CASH by Li Ying A thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Software Engineering Faculty of Science and

More information

Lane Detection in Automotive

Lane Detection in Automotive Lane Detection in Automotive Contents Introduction... 2 Image Processing... 2 Reading an image... 3 RGB to Gray... 3 Mean and Gaussian filtering... 5 Defining our Region of Interest... 6 BirdsEyeView Transformation...

More information

Revised Curriculum for Bachelor of Computer Science & Engineering, 2011

Revised Curriculum for Bachelor of Computer Science & Engineering, 2011 Revised Curriculum for Bachelor of Computer Science & Engineering, 2011 FIRST YEAR FIRST SEMESTER al I Hum/ T / 111A Humanities 4 100 3 II Ph /CSE/T/ 112A Physics - I III Math /CSE/ T/ Mathematics - I

More information

Training Neural Networks for Checkers

Training Neural Networks for Checkers Training Neural Networks for Checkers Daniel Boonzaaier Supervisor: Adiel Ismail 2017 Thesis presented in fulfilment of the requirements for the degree of Bachelor of Science in Honours at the University

More information

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence CS 4700: Foundations of Artificial Intelligence Bart Selman Reinforcement Learning R&N Chapter 21 Note: in the next two parts of RL, some of the figure/section numbers refer to an earlier edition of R&N

More information

Full Contents. Survey V8.08 Essentials

Full Contents. Survey V8.08 Essentials Section 1: Overview Essentials 1.1 Introduction... 3 Learning InRoads Survey... 3 Basic Rules... 3 How to Use This Guide... 4 Section Breakdown... 5 Section 1: Overview Essentials... 5 Section 2: Production

More information

ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG

ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG ARDUINO BASED WATER LEVEL MONITOR- ING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN TUAN ISMAIL UNIVERSITI MALAYSIA PAHANG ARDUINO BASED WATER LEVEL MONITORING AND CONTROL VIA CAN BUS TUAN ABU BAKAR BIN

More information

CONTENTS FOREWORD... VII ACKNOWLEDGMENTS... IX CONTENTS... XI LIST OF FIGURES... XVII LIST OF TABLES... XIX LIST OF ABBREVIATIONS...

CONTENTS FOREWORD... VII ACKNOWLEDGMENTS... IX CONTENTS... XI LIST OF FIGURES... XVII LIST OF TABLES... XIX LIST OF ABBREVIATIONS... CONTENTS FOREWORD... VII ACKNOWLEDGMENTS... IX CONTENTS... XI LIST OF FIGURES... XVII LIST OF TABLES... XIX LIST OF ABBREVIATIONS... XXI 1 INTRODUCTION... 1 1.1 Problem Definition... 1 1.2 Research Gap

More information

SMALL OFFICE TUTORIAL

SMALL OFFICE TUTORIAL SMALL OFFICE TUTORIAL in this lesson you will get a down and dirty overview of the functionality of Revit Architecture. The very basics of creating walls, doors, windows, roofs, annotations and dimensioning.

More information

GENERALIZATION: RANK ORDER FILTERS

GENERALIZATION: RANK ORDER FILTERS GENERALIZATION: RANK ORDER FILTERS Definition For simplicity and implementation efficiency, we consider only brick (rectangular: wf x hf) filters. A brick rank order filter evaluates, for every pixel in

More information

AI Approaches to Ultimate Tic-Tac-Toe

AI Approaches to Ultimate Tic-Tac-Toe AI Approaches to Ultimate Tic-Tac-Toe Eytan Lifshitz CS Department Hebrew University of Jerusalem, Israel David Tsurel CS Department Hebrew University of Jerusalem, Israel I. INTRODUCTION This report is

More information

Game Variations: Ultimate Tic Tac Toe

Game Variations: Ultimate Tic Tac Toe Game Variations: Ultimate Tic Tac Toe Middle School In this lesson, students will experience the engineering process when creating modifications to a familiar game. Next Generation Science Standards MS-ETS1-1

More information

Hierarchical Controller for Robotic Soccer

Hierarchical Controller for Robotic Soccer Hierarchical Controller for Robotic Soccer Byron Knoll Cognitive Systems 402 April 13, 2008 ABSTRACT RoboCup is an initiative aimed at advancing Artificial Intelligence (AI) and robotics research. This

More information

Technical Note. How to Use the Image Studio Software Western and MPX Western Analyses. Developed for: Image Studio Software

Technical Note. How to Use the Image Studio Software Western and MPX Western Analyses. Developed for: Image Studio Software Technical Note How to Use the Image Studio Software Western and MPX Western Analyses Developed for: Image Studio Software Please refer to your manual to confirm that this protocol is appropriate for the

More information

Deep Green. System for real-time tracking and playing the board game Reversi. Final Project Submitted by: Nadav Erell

Deep Green. System for real-time tracking and playing the board game Reversi. Final Project Submitted by: Nadav Erell Deep Green System for real-time tracking and playing the board game Reversi Final Project Submitted by: Nadav Erell Introduction to Computational and Biological Vision Department of Computer Science, Ben-Gurion

More information

THE DEVELOPMENT OF INTENSITY DURATION FREQUENCY CURVES FITTING CONSTANT AT KUANTAN RIVER BASIN

THE DEVELOPMENT OF INTENSITY DURATION FREQUENCY CURVES FITTING CONSTANT AT KUANTAN RIVER BASIN THE DEVELOPMENT OF INTENSITY DURATION FREQUENCY CURVES FITTING CONSTANT AT KUANTAN RIVER BASIN NUR SALBIAH BINTI SHAMSUDIN B.ENG (HONS.) CIVIL ENGINEERING UNIVERSITI MALAYSIA PAHANG THE DEVELOPMENT OF

More information

Arrays. Independent Part. Contents. Programming with Java Module 3. 1 Bowling Introduction Task Intermediate steps...

Arrays. Independent Part. Contents. Programming with Java Module 3. 1 Bowling Introduction Task Intermediate steps... Programming with Java Module 3 Arrays Independent Part Contents 1 Bowling 3 1.1 Introduction................................. 3 1.2 Task...................................... 3 1.3 Intermediate steps.............................

More information

INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG UNIVERSITI MALAYSIA PAHANG

INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG UNIVERSITI MALAYSIA PAHANG INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG UNIVERSITI MALAYSIA PAHANG INTELLIGENT HOME AUTOMATION SYSTEM (IHAS) WITH SECURITY PROTECTION NEO CHAN LOONG This thesis

More information

NURIKABE. Mason Salisbury, Josh Smith, and Diyalo Manral

NURIKABE. Mason Salisbury, Josh Smith, and Diyalo Manral NURIKABE Mason Salisbury, Josh Smith, and Diyalo Manral Quick History Created in Japan in 1991 by Renin First appeared in a puzzle compilation book called Nikoli Named after a creature in Japanese folklore.

More information

Full Contents. Essentials, Workbook

Full Contents. Essentials, Workbook Section 1: Overview Essentials 1.1 Introduction... 3 Learning InRoads... 3 Basic Rules... 3 How to Use This Guide... 4 Section Breakdown... 5 Section 1: Overview Essentials... 5 Section 2: Production Essentials...

More information

For our EC331 project we successfully designed and implemented a PIC based Tic-Tac-Toe game using the PIC16874.

For our EC331 project we successfully designed and implemented a PIC based Tic-Tac-Toe game using the PIC16874. EC331 Project Report To: Dr. Song From: Colin Hill and Peter Haugen Date: 6/7/2004 Project: Pic based Tic-Tac-Toe System Introduction: For our EC331 project we successfully designed and implemented a PIC

More information

Contents Technical background II. RUMBA technical specifications III. Hardware connection IV. Set-up of the instrument Laboratory set-up

Contents Technical background II. RUMBA technical specifications III. Hardware connection IV. Set-up of the instrument Laboratory set-up RUMBA User Manual Contents I. Technical background... 3 II. RUMBA technical specifications... 3 III. Hardware connection... 3 IV. Set-up of the instrument... 4 1. Laboratory set-up... 4 2. In-vivo set-up...

More information

Game Boards for Various Strategy Games

Game Boards for Various Strategy Games Appendix Game Boards for Various Strategy Games This chapter will provide you with the game boards where needed. Feel free to copy a game board, enlarge it if necessary, and play the game. Make extra copies

More information

APPLICATION NOTE FOR PA.700A ANTENNA INTEGRATION

APPLICATION NOTE FOR PA.700A ANTENNA INTEGRATION APPLICATION NOTE FOR PA.700A ANTENNA INTEGRATION VERSION A Your Global Source for RF, Wireless & Energy Technologies www.richardsonrfpd.com 800.737.6937 630.208.2700 APN-11-8-001/A 14-July-11 Page 1 of

More information

SEM Training Notebook

SEM Training Notebook SEM Training Notebook Lab Manager: Dr. Perry Cheung MSE Fee-For-Service Facility Materials Science and Engineering University of California, Riverside December 21, 2017 (rev. 3.4) 1 Before you begin Complete

More information

Lane Detection in Automotive

Lane Detection in Automotive Lane Detection in Automotive Contents Introduction... 2 Image Processing... 2 Reading an image... 3 RGB to Gray... 3 Mean and Gaussian filtering... 6 Defining our Region of Interest... 10 BirdsEyeView

More information

Graphics packages can be bit-mapped or vector. Both types of packages store graphics in a different way.

Graphics packages can be bit-mapped or vector. Both types of packages store graphics in a different way. Graphics packages can be bit-mapped or vector. Both types of packages store graphics in a different way. Bit mapped packages (paint packages) work by changing the colour of the pixels that make up the

More information

This game can be played in a 3x3 grid (shown in the figure 2.1).The game can be played by two players. There are two options for players:

This game can be played in a 3x3 grid (shown in the figure 2.1).The game can be played by two players. There are two options for players: 1. bjectives: ur project name is Tic-Tac-Toe game. This game is very popular and is fairly simple by itself. It is actually a two player game. In this game, there is a board with n x n squares. In our

More information

Contents. Notes on the use of this publication

Contents. Notes on the use of this publication Contents Preface xxiii Scope Notes on the use of this publication xxv xxvi 1 Layout of drawings 1 1.1 General 1 1.2 Drawing sheets 1 1.3 Title block 2 1.4 Borders and frames 2 1.5 Drawing formats 2 1.6

More information

An Artificial Intelligence System for Monitoring and Security for Vehicular Plate Number in Lyceum of the Philippines University Laguna

An Artificial Intelligence System for Monitoring and Security for Vehicular Plate Number in Lyceum of the Philippines University Laguna An Artificial Intelligence System for Monitoring and Security for Vehicular Plate Number in Lyceum of the Philippines University Laguna Joseph T. Seranilla 1*, Angelino P. Flores 1, Veryll John Sumague

More information

SCRABBLE ARTIFICIAL INTELLIGENCE GAME. CS 297 Report. Presented to. Dr. Chris Pollett. Department of Computer Science. San Jose State University

SCRABBLE ARTIFICIAL INTELLIGENCE GAME. CS 297 Report. Presented to. Dr. Chris Pollett. Department of Computer Science. San Jose State University SCRABBLE AI GAME 1 SCRABBLE ARTIFICIAL INTELLIGENCE GAME CS 297 Report Presented to Dr. Chris Pollett Department of Computer Science San Jose State University In Partial Fulfillment Of the Requirements

More information

Name: 1. Match the word with the definition (1 point each - no partial credit!)

Name: 1. Match the word with the definition (1 point each - no partial credit!) Chapter 12 Exam Name: Answer the questions in the spaces provided. If you run out of room, show your work on a separate paper clearly numbered and attached to this exam. SHOW ALL YOUR WORK!!! Remember

More information

Connect Four Emulator

Connect Four Emulator Connect Four Emulator James Van Koevering, Kevin Weinert, Diana Szeto, Kyle Johannes Electrical and Computer Engineering Department School of Engineering and Computer Science Oakland University, Rochester,

More information

ANCIENT GAME REVIEW HISTORY OF VIDEO GAMES MR. GALLERY

ANCIENT GAME REVIEW HISTORY OF VIDEO GAMES MR. GALLERY ANCIENT GAME REVIEW HISTORY OF VIDEO GAMES MR. GALLERY DUODECIM SCRIPTA (XII SCRIPTA) or LUDUS DUODECIM SCRIPTORUM Name means Game of Twelve Lines Developed by the Romans Earliest games found between 100-200

More information

Automatically Generating Puzzle Problems with Varying Complexity

Automatically Generating Puzzle Problems with Varying Complexity Automatically Generating Puzzle Problems with Varying Complexity Amy Chou and Justin Kaashoek Mentor: Rishabh Singh Fourth Annual PRIMES MIT Conference May 19th, 2014 The Motivation We want to help people

More information

Math 152: Applicable Mathematics and Computing

Math 152: Applicable Mathematics and Computing Math 152: Applicable Mathematics and Computing April 16, 2017 April 16, 2017 1 / 17 Announcements Please bring a blue book for the midterm on Friday. Some students will be taking the exam in Center 201,

More information

CONTENTS CHAPTER 1 WHAT THIS IS ALL ABOUT...

CONTENTS CHAPTER 1 WHAT THIS IS ALL ABOUT... CONTENTS CHAPTER 1 WHAT THIS IS ALL ABOUT... 17 INTRODUCTION... 17 Terminology... 18 MACINTOSH AND WINDOWS... 20 CONVENTIONS USED IN THIS TUTORIAL... 21 Command Menu Title And Pull-Down Menu... 22 Commands,

More information

TABLE OF CONTENTS CHAPTER TITLE PAGE

TABLE OF CONTENTS CHAPTER TITLE PAGE vii TABLE OF CONTENTS CHAPTER TITLE PAGE DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF FIGURES LIST OF ABBREVIATIONS ii iii iv v vi vii xi xiv 1 INTRODUCTION 1 1.1 Overview

More information

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1

Introduction Solvability Rules Computer Solution Implementation. Connect Four. March 9, Connect Four 1 Connect Four March 9, 2010 Connect Four 1 Connect Four is a tic-tac-toe like game in which two players drop discs into a 7x6 board. The first player to get four in a row (either vertically, horizontally,

More information

Legend. The Red Goal. The. Blue. Goal

Legend. The Red Goal. The. Blue. Goal Gamesman: A Graphical Game Analysis System Dan Garcia Abstract We present Gamesman, a graphical system for implementing, learning, analyzing and playing small finite two-person

More information

Copies of the Color by Pixel template sheets (included in the Resources section). Colored pencils, crayons, markers, or other supplies for coloring.

Copies of the Color by Pixel template sheets (included in the Resources section). Colored pencils, crayons, markers, or other supplies for coloring. This offline lesson plan covers the basics of computer graphics. After learning about how graphics work, students will create their own Color by Pixel programs. The lesson plan consists of four parts,

More information

1. SALIENT FEATURES OF THE DIPLOMA PROGRAMME IN MECHANICAL ENGINEERING (TOOL AND DIE)

1. SALIENT FEATURES OF THE DIPLOMA PROGRAMME IN MECHANICAL ENGINEERING (TOOL AND DIE) 1. SALIENT FEATURES OF THE DIPLOMA PROGRAMME IN MECHANICAL ENGINEERING (TOOL AND DIE) 1) Name of the Programme : Diploma Programme in Mechanical Engineering (Tool and Die) 2) Duration of the Programme

More information

VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG

VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION TECHNIQUE MOHD KHAIRUL NAJMIE BIN MOHD NOR BACHELOR OF ENGINEERING UNIVERSITI MALAYSIA PAHANG VALVE CONDITION MONITORING BY USING ACOUSTIC EMISSION

More information

The Mathematics of Playing Tic Tac Toe

The Mathematics of Playing Tic Tac Toe The Mathematics of Playing Tic Tac Toe by David Pleacher Although it has been shown that no one can ever win at Tic Tac Toe unless a player commits an error, the game still seems to have a universal appeal.

More information

Chapter Two: The GamePlan Software *

Chapter Two: The GamePlan Software * Chapter Two: The GamePlan Software * 2.1 Purpose of the Software One of the greatest challenges in teaching and doing research in game theory is computational. Although there are powerful theoretical results

More information

Real-time FPGA realization of an UWB transceiver physical layer

Real-time FPGA realization of an UWB transceiver physical layer University of Wollongong Research Online University of Wollongong Thesis Collection 1954-2016 University of Wollongong Thesis Collections 2005 Real-time FPGA realization of an UWB transceiver physical

More information

Proximity Matrix and Its Applications. Li Jinbo. Master of Science in Software Engineering

Proximity Matrix and Its Applications. Li Jinbo. Master of Science in Software Engineering Proximity Matrix and Its Applications by Li Jinbo Master of Science in Software Engineering 2013 Faculty of Science and Technology University of Macau Proximity Matrix and Its Applications by Li Jinbo

More information

QUALITY CHECKING AND INSPECTION BASED ON MACHINE VISION TECHNIQUE TO DETERMINE TOLERANCEVALUE USING SINGLE CERAMIC CUP

QUALITY CHECKING AND INSPECTION BASED ON MACHINE VISION TECHNIQUE TO DETERMINE TOLERANCEVALUE USING SINGLE CERAMIC CUP QUALITY CHECKING AND INSPECTION BASED ON MACHINE VISION TECHNIQUE TO DETERMINE TOLERANCEVALUE USING SINGLE CERAMIC CUP Nursabillilah Mohd Alie 1, Mohd Safirin Karis 1, Gao-Jie Wong 1, Mohd Bazli Bahar

More information

Maximum-Gain Radial Ground Systems for Vertical Antennas

Maximum-Gain Radial Ground Systems for Vertical Antennas Maximum-Gain Radial Ground Systems for Vertical Antennas Al Christman, K3LC Abstract This article compares the peak gain generated by quarter-wave vertical-monopole antennas when they are installed over

More information

Robust Hand Gesture Recognition for Robotic Hand Control

Robust Hand Gesture Recognition for Robotic Hand Control Robust Hand Gesture Recognition for Robotic Hand Control Ankit Chaudhary Robust Hand Gesture Recognition for Robotic Hand Control 123 Ankit Chaudhary Department of Computer Science Northwest Missouri State

More information

TEMPORAL DIFFERENCE LEARNING IN CHINESE CHESS

TEMPORAL DIFFERENCE LEARNING IN CHINESE CHESS TEMPORAL DIFFERENCE LEARNING IN CHINESE CHESS Thong B. Trinh, Anwer S. Bashi, Nikhil Deshpande Department of Electrical Engineering University of New Orleans New Orleans, LA 70148 Tel: (504) 280-7383 Fax:

More information

Slitherlink. Supervisor: David Rydeheard. Date: 06/05/10. The University of Manchester. School of Computer Science. B.Sc.(Hons) Computer Science

Slitherlink. Supervisor: David Rydeheard. Date: 06/05/10. The University of Manchester. School of Computer Science. B.Sc.(Hons) Computer Science Slitherlink Student: James Rank rankj7@cs.man.ac.uk Supervisor: David Rydeheard Date: 06/05/10 The University of Manchester School of Computer Science B.Sc.(Hons) Computer Science Abstract Title: Slitherlink

More information

Simulation of a mobile robot navigation system

Simulation of a mobile robot navigation system Edith Cowan University Research Online ECU Publications 2011 2011 Simulation of a mobile robot navigation system Ahmed Khusheef Edith Cowan University Ganesh Kothapalli Edith Cowan University Majid Tolouei

More information

Real-Time Connect 4 Game Using Artificial Intelligence

Real-Time Connect 4 Game Using Artificial Intelligence Journal of Computer Science 5 (4): 283-289, 2009 ISSN 1549-3636 2009 Science Publications Real-Time Connect 4 Game Using Artificial Intelligence 1 Ahmad M. Sarhan, 2 Adnan Shaout and 2 Michele Shock 1

More information

Investigation of data reporting techniques and analysis of continuous power quality data in the Vector distribution network

Investigation of data reporting techniques and analysis of continuous power quality data in the Vector distribution network University of Wollongong Research Online University of Wollongong Thesis Collection 1954-2016 University of Wollongong Thesis Collections 2006 Investigation of data reporting techniques and analysis of

More information

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition Hetal R. Thaker Atmiya Institute of Technology & science, Kalawad Road, Rajkot Gujarat, India C. K. Kumbharana,

More information

NEVADA GOOD SAMS GAME RULES Revised September 2015

NEVADA GOOD SAMS GAME RULES Revised September 2015 NEVADA GOOD SAMS GAME RULES Revised September 2015 GENERAL GAME RULES FOR TOURNAMENTS: All games will be played in accordance with Nevada Good Sam Official Game rules. In order to participate for the Nevada

More information

Announcing the 2018 International Games SIG Classic Game Showcase

Announcing the 2018 International Games SIG Classic Game Showcase Announcing the 2018 International Games SIG Classic Game Showcase featuring the Intellivision Game Console final event to be held online and live on stage September 29, 2018 at Thunder Studios in Long

More information

Documentation and Discussion

Documentation and Discussion 1 of 9 11/7/2007 1:21 AM ASSIGNMENT 2 SUBJECT CODE: CS 6300 SUBJECT: ARTIFICIAL INTELLIGENCE LEENA KORA EMAIL:leenak@cs.utah.edu Unid: u0527667 TEEKO GAME IMPLEMENTATION Documentation and Discussion 1.

More information

Planning of the implementation of public policy: a case study of the Board of Studies, N.S.W.

Planning of the implementation of public policy: a case study of the Board of Studies, N.S.W. University of Wollongong Research Online University of Wollongong Thesis Collection 1954-2016 University of Wollongong Thesis Collections 1994 Planning of the implementation of public policy: a case study

More information

Creating a VEX IQ Event in Tournament Manager (TM)

Creating a VEX IQ Event in Tournament Manager (TM) Creating a VEX IQ Event in Tournament Manager (TM) I. Download and install the latest version of Tournament Manager II. III. IV. A. Choose Components 1. Select Desktop Shortcuts if desired Launch Page

More information

Tac Due: Sep. 26, 2012

Tac Due: Sep. 26, 2012 CS 195N 2D Game Engines Andy van Dam Tac Due: Sep. 26, 2012 Introduction This assignment involves a much more complex game than Tic-Tac-Toe, and in order to create it you ll need to add several features

More information

The Principles Of A.I Alphago

The Principles Of A.I Alphago The Principles Of A.I Alphago YinChen Wu Dr. Hubert Bray Duke Summer Session 20 july 2017 Introduction Go, a traditional Chinese board game, is a remarkable work of art which has been invented for more

More information

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION International Journal of Computer Science and Communication Vol. 2, No. 2, July-December 2011, pp. 593-599 INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION Chetan Sharma 1 and Amandeep Kaur 2 1

More information

The game of Reversi was invented around 1880 by two. Englishmen, Lewis Waterman and John W. Mollett. It later became

The game of Reversi was invented around 1880 by two. Englishmen, Lewis Waterman and John W. Mollett. It later became Reversi Meng Tran tranm@seas.upenn.edu Faculty Advisor: Dr. Barry Silverman Abstract: The game of Reversi was invented around 1880 by two Englishmen, Lewis Waterman and John W. Mollett. It later became

More information

Let s Make. Math Fun. Volume 19 January/February Dice Challenges. Telling the Time. Printable Games. Mastering Multiplication.

Let s Make. Math Fun. Volume 19 January/February Dice Challenges. Telling the Time. Printable Games. Mastering Multiplication. Let s Make Volume 19 January/February 2013 Math Fun Dice Challenges Printable Games Telling the Time Mastering Multiplication Bingo Math Fun Help Them to Fall in Love with Math THE LET S MAKE MATH FUN

More information

Determining the Cost Function In Tic-Tac-Toe puzzle game by Using Branch and Bound Algorithm

Determining the Cost Function In Tic-Tac-Toe puzzle game by Using Branch and Bound Algorithm Determining the Cost Function In Tic-Tac-Toe puzzle game by Using Branch and Bound Algorithm Teofebano - 13512050 Program Studi Teknik Informatika Sekolah Teknik Elektro dan Informatika Institut Teknologi

More information

Contents. Foreword. Using this Guide

Contents. Foreword. Using this Guide Foreword xv Preface xvii Scope Using this Guide xix xix 1 Specifying technical products 1 1.1 What is meant by technical product specification? 1 1.2 Design brief 1 1.3 Function 1 1.4 Specifications 2

More information

Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am

Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! Due (in dropbox) Tuesday, September 23, 9:34am The purpose of this assignment is to program some of the search algorithms

More information

Connect 4. Figure 1. Top level simplified block diagram.

Connect 4. Figure 1. Top level simplified block diagram. Connect 4 Jonathon Glover, Ryan Sherry, Sony Mathews and Adam McNeily Electrical and Computer Engineering Department School of Engineering and Computer Science Oakland University, Rochester, MI e-mails:jvglover@oakland.edu,

More information

For slightly more detailed instructions on how to play, visit:

For slightly more detailed instructions on how to play, visit: Introduction to Artificial Intelligence CS 151 Programming Assignment 2 Mancala!! The purpose of this assignment is to program some of the search algorithms and game playing strategies that we have learned

More information

6. True or false? Shapes that have no right angles also have no perpendicular segments. Draw some figures to help explain your thinking.

6. True or false? Shapes that have no right angles also have no perpendicular segments. Draw some figures to help explain your thinking. NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 3 Homework 4 4 5. Use your right angle template as a guide and mark each right angle in the following figure with a small square. (Note that a right angle

More information

Year 11 Graphing Notes

Year 11 Graphing Notes Year 11 Graphing Notes Terminology It is very important that students understand, and always use, the correct terms. Indeed, not understanding or using the correct terms is one of the main reasons students

More information

Game Playing in Prolog

Game Playing in Prolog 1 Introduction CIS335: Logic Programming, Assignment 5 (Assessed) Game Playing in Prolog Geraint A. Wiggins November 11, 2004 This assignment is the last formally assessed course work exercise for students

More information

Virtual Furniture Using Augmented Reality

Virtual Furniture Using Augmented Reality IOSR Journal of Computer Engineering (IOSR-JCE) e-issn: 2278-0661,p-ISSN: 2278-8727 PP 42-46 www.iosrjournals.org Virtual Furniture Using Augmented Reality Snehal Mangale 1, Nabil Phansopkar 2, Safwaan

More information

UNIVERSITI TEKNOLOGI MARA IDENTIFYING AND DETECTING UNLAWFUL BEHAVIOR IN VIDEO IMAGES USING GENETIC ALGORITHM

UNIVERSITI TEKNOLOGI MARA IDENTIFYING AND DETECTING UNLAWFUL BEHAVIOR IN VIDEO IMAGES USING GENETIC ALGORITHM UNIVERSITI TEKNOLOGI MARA IDENTIFYING AND DETECTING UNLAWFUL BEHAVIOR IN VIDEO IMAGES USING GENETIC ALGORITHM SHAHIRAH BINTIMOHAMED HATIM Thesis submitted in fulfillment of the requirements for the degree

More information

Free Crochet Pattern Lion Brand Off The Hook Milo Blanket Pattern Number: L80261 Designed by Kaz

Free Crochet Pattern Lion Brand Off The Hook Milo Blanket Pattern Number: L80261 Designed by Kaz Free Crochet Pattern Lion Brand Off The Hook Designed by Kaz 2018 Lion Brand Yarn Company, all rights reserved. SKILL LEVEL Easy SIZE Finished Size About 54 x 54 in. (137.5 x 137.5 cm) MATERIALS Lion Brand

More information

Thesis: Bio-Inspired Vision Model Implementation In Compressed Surveillance Videos by. Saman Poursoltan. Thesis submitted for the degree of

Thesis: Bio-Inspired Vision Model Implementation In Compressed Surveillance Videos by. Saman Poursoltan. Thesis submitted for the degree of Thesis: Bio-Inspired Vision Model Implementation In Compressed Surveillance Videos by Saman Poursoltan Thesis submitted for the degree of Doctor of Philosophy in Electrical and Electronic Engineering University

More information