Martin Boyd Christopher Hirunthanakorn

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

Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
ICAMP: Game Simulation and Analysis Analysis of the Game “Poison” Sarah Eichhorn University of California Irvine iCAMP Overview Meeting, 5/5/10.
Tetris – Genetic Algorithm Presented by, Jeethan & Jun.
Evolution and Repeated Games D. Fudenberg (Harvard) E. Maskin (IAS, Princeton)
AE1APS Algorithmic Problem Solving John Drake.  Invariants – Chapter 2  River Crossing – Chapter 3  Logic Puzzles – Chapter 5  Matchstick Games -
AI for Connect-4 (or other 2-player games) Minds and Machines.
COMP-4640: Intelligent & Interactive Systems Game Playing A game can be formally defined as a search problem with: -An initial state -a set of operators.
Application of Artificial intelligence to Chess Playing Capstone Design Project 2004 Jason Cook Bitboards  Bitboards are 64 bit unsigned integers, with.
Artificial Intelligence in Game Design Heuristics and Other Ideas in Board Games.
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.
Artificial Intelligence in Game Design
Shallow Blue Project 2 Due date: April 5 th. Introduction Second in series of three projects This project focuses on getting AI opponent Subsequent project.
MAE 552 – Heuristic Optimization Lecture 28 April 5, 2002 Topic:Chess Programs Utilizing Tree Searches.
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.
Adversarial Search: Game Playing Reading: Chess paper.
Game Theory Statistics 802. Lecture Agenda Overview of games 2 player games representations 2 player zero-sum games Render/Stair/Hanna text CD QM for.
Matthew Marcon Project 19 1/10/12
1 Adversary Search Ref: Chapter 5. 2 Games & A.I. Easy to measure success Easy to represent states Small number of operators Comparison against humans.
Hex Combinatorial Search in Game Strategy by Brandon Risberg May 2006Menlo School.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Lecture 5 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Brian Duddy.  Two players, X and Y, are playing a card game- goal is to find optimal strategy for X  X has red ace (A), black ace (A), and red two (2)
Othello Artificial Intelligence With Machine Learning
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
Game Theory Part 2: Zero Sum Games. Zero Sum Games The following matrix defines a zero-sum game. Notice the sum of the payoffs to each player, at every.
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.
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.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Introduction to Morris Games Originally Compiled by Michelle Sharp With contributions by Walter Voit, Kedar Naidu, & James Latham 7 February 2007.
W 2 L 1 sh 1 C lessons LessonSubjectBook Week 1 lesson 1Objects, names Week 1 lesson 2Statements, layout Week 2 lesson 1Functions, decomposition Week 2.
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.
Machine Learning for an Artificial Intelligence Playing Tic-Tac-Toe Computer Systems Lab 2005 By Rachel Miller.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
Monte-Carlo methods for Computation and Optimization Spring 2015 Based on “N-Grams and the Last-Good-Reply Policy Applied in General Game Playing” (Mandy.
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.
Cilk Pousse James Process CS534. Overview Introduction to Pousse Searching Evaluation Function Move Ordering Conclusion.
Artificial Intelligence and Searching CPSC 315 – Programming Studio Spring 2013 Project 2, Lecture 1 Adapted from slides of Yoonsuck Choe.
Tetris Agent Optimization Using Harmony Search Algorithm
Rules Of Chess!!!!!! By: Caylin Stappenbeck. Table Of Contents!!!! Rules*** Conclusion***
An Introduction to Game Theory Math 480: Mathematics Seminar Dr. Sylvester.
The Basics Of Chess Student Name: Jovannie Charles Date: 3/25/11.
GamblingGambling What are the odds? Jessica Judd.
Game tree search Thanks to Andrew Moore and Faheim Bacchus for slides!
Chess Strategies Component Skills Strategies Prototype Josh Waters, Ty Fenn, Tianyu Chen.
Game tree search Chapter 6 (6.1 to 6.3 and 6.6) cover games. 6.6 covers state of the art game players in particular. 6.5 covers games that involve uncertainty.
Playing Tic-Tac-Toe with Neural Networks
Othello Artificial Intelligence With Machine Learning Computer Systems TJHSST Nick Sidawy.
Checkers A Matlab Project by Spenser Davison, Edward Dyakiw, Justin Pezzi, and Scott Wu.
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.
Benjamin Casey C S 329 E Spring  Variants played since ancient times; resemblance to Chinese “Jianshizi” or “picking stones”  Current name and.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
An AI Game Project. Background Fivel is a unique hybrid of a NxM game and a sliding puzzle. The goals in making this project were: Create an original.
Patrick Racy Project 19 1/9/12
Artificial Intelligence in Game Design Board Games and the MinMax Algorithm.
Teaching Computers to Think:
Understanding AI of 2 Player Games. Motivation Not much experience in AI (first AI project) and no specific interests/passion that I wanted to explore.
Artificial Intelligence AIMA §5: Adversarial Search
Adversarial Search and Game-Playing
Adversarial Environments/ Game Playing
By Kevin Madison and Emma Drobina
C nnect 4 Group 9-18 See Zhuo Rui Jorelle 3S3 (Leader)
Kevin Mason Michael Suggs
NIM - a two person game n objects are in one pile
Duo By: Fernando & Vivian.
The Alpha-Beta Procedure
CSE (c) S. Tanimoto, 2007 Search 2: AlphaBeta Pruning
Unit II Game Playing.
Presentation transcript:

Martin Boyd Christopher Hirunthanakorn Nine Men's Morris Martin Boyd Christopher Hirunthanakorn

Game Overview Two player game RULES Players alternate turns placing pieces on the board If a mill is formed, player may remove an opponent's piece mill - three pieces formed along a line After both players place nine pieces, players move their pieces to any free adjacent spot The game is over when a player has less than 3 pieces or no legal moves remain

Example

Example (continued)

Game Classification Determinate Zero-sum Symmetric Perfect Information Sequential Normal

Background One of the oldest games played to date Game board carving from 1400 BCE found in Egypt Also known as Mill, Merelles, or Cowboy Checkers Popular variants of the game include Three Men's, Six Men's, and Twelve Men's Morris

Research Goals/Questions Look for an optimal strategy for piece placement Find an optimal strategy for gameplay Is there a winning strategy for either player? Is the game fair?

Analyzing the Game Searched for previous work on the game Game States and Combinatorics Created program with a GUI Analyzed Five Men's Morris Created an Adaptive Program Created an AI Used python as the programming language

Previous Publications Ralph Gasser (Swiss computer scientist) Proved that perfect play in Nine Men's Morris results in a draw and is impossible for humans to achieve Analyzed the midgame and endgame by going through all possible game states and labeling them a win or lose position Did not provide any advice on the optimal strategy or fairness of the game

Five Men's Morris Players have 5 pieces instead of 9 16 spots instead of 24

Game States and Combinatorics A game state is defined as the game board and all relevant information defining it such as Last player to move and position of last move Board to the right is the game state where player 1 just went but could have placed it on either side Used combinatorics to estimate the number of game states possible About 1.74 * 10^11 states based on possible combinations of placement (16*15*14*13*12*11*10*9*8*7*6) Can be reduced using symmetry of game states to about 7.26 * 10^8 (31+14*13*12*11*10*9*8*7*6)

Basic Program Structure 1 B C D E 2 3 4 5 B2 E5

Basic Program Structure Data of the Game Board is stored in 3 arrays Basic Array [A1,A3,A5,B2,B3,B4,C1,C2,C4,C5,D2,D3,D4,E1,E3,E5] Mill Array [[0,A1,A3,A5],[0,B2,B3,B4],...,[0,E1,E3,E5]] Connection Array [[A1,A3,C1,0],[A3,A1,A5,B3],...,[E5,C5,E3,0]]

Adaptive Program Runs the Game MANY times Contains Matchboxes that punish a player if that player loses thus not repeating the same mistake twice.

Matchboxes MOVES A B C D E A5 1 B4 C2 2 C4 3 C5 4 D2 D3 5 D4 E5

Adaptive Program 2 different Adaptive Programs written for Five Men's Morris Opening Stage Adaptive Contains a Matchbox for each player to select spots Second Stage Adaptive Contains two Matchboxes for each player to move pieces and the other for removing pieces

Adaptive Results Opening Stage Adaptive After 60 million runs (On the last 10 million) 72544 won by Player 1 44059 won by Player 2 9883397 end in a draw Player 1 has 20% advantage on win/loss However most opening stages end in draw Second Stage Adaptive After 10 million runs still dead even The program requires more runs to draw a conclusion.

AI Logic (Minimax and Negamax) AI is based on the game theory decision rule of Minimax and Negamax Both determine the worth of a game state using a set of conditions Efficiently searches through possible states and presents the best one. Negamax differs in how it eliminates certain states that can not be achieved to increase search speeds Current State Next State 2 5 Next Next State 9 1 2 6

AI Logic (Scoring) Plays the game more intelligently by choosing the best move from all possible moves for that game board Moves are scored based on the resultant game board next to open connection or own piece = +1 next to opponent's piece = -1 sets up 2/3 parts of a mill = +2 blocks opponent's mill = +2 makes a mill = +3

AI Results Player 1 using AI, Player 2 playing randomly After 1000 runs multiple times, Player 1 wins roughly about 70% of the time Both players using AI After 1000 runs multiple times, neither player has an advantage over the other (around 50% each) AI will require more improvements and test runs to get solid results

General Strategy Take spots on both rings Take spots with the most connections Block your opponent's move in a way that you don't trap yourself Try to force your opponent to allow you to make a mill Ex) player 1 takes outside corners and player 2 tries to block If possible, set up two potential mills next to each other so that a mill can be made by moving back and forth

Future Work Improve AI and adaptive learning programs to be more efficient Currently the Adaptive takes too long to run through the required number of games Confirm the patterns found apply to Nine Men's Morris by running the programs on it Come up with a more detailed strategy that will handle every situation