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.

Slides:



Advertisements
Similar presentations
Xi Breakthrough Player An extremely intelligent Breakthrough AI. You can tell by the use of X. CSE 486 B Fall 2012 Miami University.
Advertisements

Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
AI for Connect-4 (or other 2-player games) Minds and Machines.
Artificial Intelligence Adversarial search Fall 2008 professor: Luigi Ceccaroni.
CS 484 – Artificial Intelligence
CHAPTER 10 FUN AND GAMES Group 1: Xiangling Liu.
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search: Game Playing Reading: Chapter next time.
MINIMAX SEARCH AND ALPHA- BETA PRUNING: PLAYER 1 VS. PLAYER 2.
Adversarial Search Board games. Games 2 player zero-sum games Utility values at end of game – equal and opposite Games that are easy to represent Chess.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Lecture 13 Last time: Games, minimax, alpha-beta Today: Finish off games, summary.
VK Dice By: Kenny Gutierrez, Vyvy Pham Mentors: Sarah Eichhorn, Robert Campbell.
Domineering Solving Large Combinatorial Search Spaces.
This time: Outline Game playing The minimax algorithm
Connect Four Michelle Chen Felix Chung Annabel Hung Raymond Wong.
Game Playing CSC361 AI CSC361: Game Playing.
1 search CS 331/531 Dr M M Awais A* Examples:. 2 search CS 331/531 Dr M M Awais 8-Puzzle f(N) = g(N) + h(N)
A TIE IS NOT A LOSS Paul Adamiak T02 Aruna Meiyeppen T01.
MAE 552 – Heuristic Optimization Lecture 28 April 5, 2002 Topic:Chess Programs Utilizing Tree Searches.
Alpha Beta Search how computers make decisions Elena Eneva 10 October 2001.
Adversarial Search and Game Playing Examples. Game Tree MAX’s play  MIN’s play  Terminal state (win for MAX)  Here, symmetries have been used to reduce.
Adversarial Search: Game Playing Reading: Chess paper.
THE RENJU GAME BY ABHISHEK JAIN, PRANSHU GUPTA & RHYTHM DAS PCLUB SUMMER PROJECT PRESENTATION JUNE, L7 IIT KANPUR MENTOR – SANIL JAIN.
Alpha-Beta Search. 2 Two-player games The object of a search is to find a path from the starting position to a goal position In a puzzle-type problem,
Game Playing: Adversarial Search Chapter 6. Why study games Fun Clear criteria for success Interesting, hard problems which require minimal “initial structure”
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.
PSU CS 370 – Introduction to Artificial Intelligence Game MinMax Alpha-Beta.
CISC 235: Topic 6 Game Trees.
Adversarial Search CS30 David Kauchak Spring 2015 Some material borrowed from : Sara Owsley Sood and others.
 Summary  How to Play Go  Project Details  Demo  Results  Conclusions.
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.
Search CSE When you can’t use A* Hill-climbing Simulated Annealing Other strategies 2 person- games.
1 Computer Group Engineering Department University of Science and Culture S. H. Davarpanah
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
Alpha-beta Search. Two-player games zThe object of a search is to find a path from the starting position to a goal position zIn a puzzle-type problem,
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.
Instructor: Vincent Conitzer
Othello Playing AI Matt Smith. Othello 8x8 Board game 8x8 Board game Try to outflank opponents pieces Try to outflank opponents pieces Winner ends up.
GOMOKU ALGORITHM STUDY MIN-MAX AND MONTE CARLO APPROACHING
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
Games 1 Alpha-Beta Example [-∞, +∞] Range of possible values Do DF-search until first leaf.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
Cilk Pousse James Process CS534. Overview Introduction to Pousse Searching Evaluation Function Move Ordering Conclusion.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Tetris Agent Optimization Using Harmony Search Algorithm
Quoridor and Artificial Intelligence
Game tree search Thanks to Andrew Moore and Faheim Bacchus for slides!
Warship C++: An entity of Battleship
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
CompSci Backtracking, Search, Heuristics l Many problems require an approach similar to solving a maze ä Certain mazes can be solved using the.
CPS Backtracking, Search, Heuristics l Many problems require an approach similar to solving a maze ä Certain mazes can be solved using the “right-hand”
Adversarial Search and Game Playing Russell and Norvig: Chapter 6 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
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.
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.
Game Playing Why do AI researchers study game playing?
Instructor: Vincent Conitzer
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
Instructor: Vincent Conitzer
And the few things I did Jacobus Harding
Search and Game Playing
Six dominoes have been placed in this grid and there is only one way of filing the grid with more dominoes. Try it:
CS51A David Kauchak Spring 2019
Backtracking, Search, Heuristics
Unit II Game Playing.
Presentation transcript:

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 one with black discs  Take turns inserting discs into the top of the board  A player can win by connecting four of their owns discs either horizontally, vertically, or diagonally before the other player  Perfect information, zero-sum game  Six rows by seven columns -> 4,531,985,219,092 possible game board layouts  Solved conclusion -> with perfect play, first player win

Specifications for our program  Graphical user interface  Variable game board sizes  At most one human player  Record all moves made and game states  Allow AI vs AI play  Allow multiple games to be played without restarting the program

AI Implementations  Random player  Blocker player  Minimax player  Minimax w/ weighted scores player  Minimax w/ alpha beta pruning player  Minimax w/ heuristic player  Monte Carlo method player  Monte Carlo w/ concurrency player

Simple AI Players  Random  Inserts discs at random into the board  Blocker  Attempts to block opponent wins  If no block move is found, inserts discs at random into the board

Minimax Player  Looks four moves ahead  Only wins/losses are considered  Ties in the scores of possible moves are broken at random

Minimax (Weighted Scores) Player  Looks four moves ahead  Only wins/losses are considered  Able to prioritize moves based on weights  Ties in the scores of possible moves are broken at random

Minimax (AlphaBeta) Player  Looks five moves ahead  Only wins/losses are considered  Able to prioritize moves based on weights  Prunes away branches that would have no effect on the final decision  Ties in the scores of possible moves are broken at random  Slow in the beginning parts of games, greatly improves search time in latter parts of games

Minimax (Heuristic) Player  Looks four moves ahead  Only wins/losses are considered  Able to prioritize moves based on weights  Scores states without a win or loss (non-terminal states) based on the number of open three-in-rows sequences that each player has

Monte Carlo Player  Considers the possible moves at a given state  For each move, simulate a given number of random games  Assigns a score [-100, 100] to each possible move based on the results of the simulated games

Monte Carlo (Concurrency) Player  Same as the Monte Carlo player, but uses threads to improve the computation time  In most cases, decreases the amount of time need to calculate a move a factor of one half

Unfinished Goals  Further optimizations of AIs  A player that utilizes all of these techniques  A player that utilizes learning techniques  Comparison of results of AI vs AI matches for all AI players to determine the best approaches