Checkers A Matlab Project by Spenser Davison, Edward Dyakiw, Justin Pezzi, and Scott Wu.

Slides:



Advertisements
Similar presentations
How to Play Checkers This presentation is a tutorial on how to play one of the oldest and most popular games in history. Presented by: Joshua Cox Project.
Advertisements

Martin Boyd Christopher Hirunthanakorn
Cosc 5/4730 Game Design. A short game design primer. A game or animation is built on an animation loop. – Instance variables of “objects” are updated.
Place captured red pieces below Place captured blue pieces below Rules New Game Exit Left mouse click on piece – drag to desired location - left mouse.
Introduction to Programming Using simple games to convey introductory concepts MERLOT International Conference 2004 Tracey Jensen Assistant Professor,
TIC-TAC-TOE FELIX CHEN CLUSTER 5: Computers in Biophysics and Robotics.
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.
Table of Contents Why Play Chess? Setting Up the Board Get to Know the Pieces Check and Checkmate What the Chess Pieces Are Worth Opening Goals Endgame.
CHESS FOR KIDS Lesson 1.
Place captured red pieces here Place captured yellow pieces here To use as Kings Rules New Game Exit Left mouse click on piece – drag to desired location.
1 CSE1301 Computer Programming: Lecture 23 Algorithm Design (Part 1)
Progressively Finite Games
Two examples of Problem Solving in Programming H. Chad Lane University of Pittsburgh CS7: Introduction to Programming.
HW 6: Problems 2&3 Simulating Connect 4.
CPSC 322 Introduction to Artificial Intelligence October 25, 2004.
Connect Four Michelle Chen Felix Chung Annabel Hung Raymond Wong.
Checkers Steven Prockup Spencer MacDonald. Project Overview A computer checkers playing program where the human interface is through a physical checkerboard.
Game Specific Options (Pre-Initialized) Board Size? Starting Position? Allow Diagonal moves or wins? Etc… Play Game (Initialized) Player is computer/human?
RULES Each player begins the game with twelve normal pieces (either white or black). The pieces are automatically set in their proper positions. The object.
THE RENJU GAME BY ABHISHEK JAIN, PRANSHU GUPTA & RHYTHM DAS PCLUB SUMMER PROJECT PRESENTATION JUNE, L7 IIT KANPUR MENTOR – SANIL JAIN.
Mechanical Checkers Peter Frandina Raymond Poudrier Christopher Rouland.
Chapter 3 Planning Your Solution
Matthew Marcon Project 19 1/10/12
Chess Merit Badge Chess Basics: Set Up the Board & Basic Rules by Joseph L. Bell © 2011.
Today in CS161 Lecture #4 Solving Problems with Computers Walk through the Tic Tac Toe Algorithm Getting ready for Creating Programs Turn the Inches to.
Indian Institute of Technology Hyderabad SOS - The Game A Project by Paritosh J Chandran Prakhar Bharadwaj Ganesh Mahidhar Nagarjun Srinivasan.
Game Playing.
Advanced Programming LOOP.
Set Theory Topic 1: Logical Reasoning. I can determine and explain a strategy to solve a puzzle. I can verify a strategy to win a game. I can analyze.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
By the end of this session you should be able to...
Game-playing AIs Part 1 CIS 391 Fall CSE Intro to AI 2 Games: Outline of Unit Part I (this set of slides)  Motivation  Game Trees  Evaluation.
VB Games: Preparing for Memory Brainstorm controls & events Parallel structures (again), Visibility, LoadPicture, User-defined procedures, Do While/Loop,busy.
Connect Four AI Robert Burns and Brett Crawford. Connect Four  A board with at least six rows and seven columns  Two players: one with red discs and.
BACS 287 Programming Logic 1. BACS 287 Programming Basics There are 3 general approaches to writing programs – Unstructured – Structured – Object-oriented.
Instructions: Use Project Management test questions as the basis for moving pieces. 1.This game requires two players (respectively player 1 and player.
HPC Checkers By Andy Block Ryan Egan. Table of Contents Overview of Checkers ▫Overview of Checkers ▫Rules of the Game AI Theory The Program ▫Board ▫Sample.
How to Play Checkers This presentation is a tutorial on how to play on of the oldest and most popular games in history. Presented By: Cathryn Depuy Project.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
A Classic Game of Strategy for the 21 st Century.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1 Program Planning and Design Important stages before actual program is written.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
How to Play Chess. Name of Each Piece The relative values of the chess pieces 9 points 5 points 3+ points 3 points 1 point.
Summary of the Moves of Chess
Every chess master was once a beginner. Irving Chernev
1 Using Conditional Formatting & Data Validation Applications of Spreadsheets.
Chess Strategies Component Skills Strategies Prototype Josh Waters, Ty Fenn, Tianyu Chen.
How To Play Checkers This Presentation on how to play one of the oldest and most popular games in history. Gage Holzhauer Checkers 1/18/12.
The Lovely Game of NIM. Version 1 - Classic NIM You will need seven objects, such as counters or blocks. It is a game for two players. Place the 7 counters.
2-dimensional Arrays A 2-dimensional array has rows and columns It is actually an “array of arrays” A Tic-Tac-Toe board is an example of a 3 by 3 2-d array.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
Patrick Racy Project 19 1/9/12
World of Wokcraft The very best in Single pan cooking themed fantasy gaming!
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
CHESS “The Ultimate GAME of Challenge and Strategy”
Ab & Team Presents CHESS “It’s not just a game”.
Adversarial Search.
How To Play Chess (And other Information)
Presented by: Jacob Thurston Project 19 – How to Play Checkers 3/8/12
Sit-In Lab 1 Ob-CHESS-ion
Topic 1: Problem Solving
The Alpha-Beta Procedure
Stack Applications Lecture 29 Thu, Apr 5, /23/2019
Stack Applications Lecture 29 Thu, Apr 1, /29/2019 Stacks.
The Strategic Game of Links
FOUR PLAYER CHESS.
2019 SAIMC Puzzle Challenge General Regulations
Presentation transcript:

Checkers A Matlab Project by Spenser Davison, Edward Dyakiw, Justin Pezzi, and Scott Wu

Checkers - Defined Alternating turns, move your piece Jump over opponents piece if there is space Reaching the end of the board grants kings  Kings can move in any direction Remove all of your opponents pieces to win

Checkers – Problems It isn’t as simple as that when coding. One must design everything from the ground up. Assume the player doesn’t know how to play. Translating the rules was our toughest challenge.

Checkers – Tasks Draw the board  Fill in spaces  Place checkers Construct a logical sequence of events  For each player Checking for human errors  Based on rules we defined

Checkers - Solutions Drawing board  Plotted horizontal and vertical lines  Filled in black in appropriate boxes  Made a checker Drew a circle Filled it either black or red Each having a unique handle

Checkers - Solutions Sequence of events  Draw the checkerboard  Give instructions  Prompt a player to move Check if that move is legal  Checks if king or not Change the invisible board based on new information  Visually make the checker move/jump  Check for a winner  Ask to play again? Repeat or End program

Checkers - Solutions Checking for human errors  Moving out of bounds  Moving horizontally  Moving vertically  Moving on top of another piece  Selecting incorrect piece  Moving in wrong diagonal direction  Moving too many spaces at one time  Not moving at all

Artificial Intelligence Objective: Create a computer player for single player games. Major Tasks:  Locate all available pieces.  Identify free pieces for use.  Execute required moves (jumps).  Assign scores for different moves.  Select best move and execute.  Prevent invalid moves.

Artificial Intelligence Solutions:  Cycle through board and append an array with location of AI’s pieces.  Cycle through array of locations and eliminate all pieces without available moves.  Cycle through all pieces and executes any possible jumps from piece.  Cycle through remaining pieces and assign separate scores for left and right.  Cycle through list of scores and execute move with largest score. Receive Board Variable Find All Pieces Find Pieces with Moves Check Moves for a Jump Assign Scores Return Best Move

Checkers Program Basic Flowchart Display Instruction s 2 1 Is there a winner? No Yes Print Winner Play Again? Who’s turn is it? Computer Player How many Players? Who goes First? Get Move Get AI Move YesNo Setup Board Valid Move? No Yes Reset Board Terminate Program