SlideShare a Scribd company logo
Getting started with
Open Source Game AIs
Melvin Zhang
melvin@melvinzhang.net
@melvinzhangzy
Stockfish Pachi
https://en.wikipedia.org/wiki/File:ST Battle Chess.png
http://afflictor.com/2012/09/11/chess-programs-regularly-play-at-good-amateur-level/
https://en.wikipedia.org/wiki/Deep Blue (chess computer)
Deep Blue
https://stockfishchess.org/ Lang:C++ License:GPLv3
Stockfish
Game tree
https://en.wikipedia.org/wiki/Game tree
Optimal play
Terminal
min player
max player
Optimal play
1 01 1 1Terminal
min player
max player
Optimal play
1 01 1 1
0
Terminal
min player
max player
Optimal play
1 01 1 1
0 1
Terminal
min player
max player
Optimal play
1 01 1 1
0 1
1
Terminal
min player
max player
Chess has about 1046
(2153
) states!
Minimax algorithm with heuristic score
Cut-off
min player
max player
Minimax algorithm with heuristic score
.7 .1 .6 .9Cut-off
min player
max player
Minimax algorithm with heuristic score
.7 .1 .6 .9
.1
Cut-off
min player
max player
Minimax algorithm with heuristic score
.7 .1 .6 .9
.1 .6
Cut-off
min player
max player
Minimax algorithm with heuristic score
.7 .1 .6 .9
.1 .6
.6
Cut-off
min player
max player
https://tests.stockfishchess.org/
Testing AI changes is crucial
Heuristic scores are hard!
http://mathworld.wolfram.com/Go.html
by Google Deepmind
https://deepmind.com/research/alphago/
https://gogameguru.com/alphago-races-ahead-2-0-lee-sedol/
http://pachi.or.cz/ Lang:C License:GPLv2
Pachi
Monte Carlo evaluations
Cut-off
min player
max player
Monte Carlo evaluations
Cut-off
min player
max player
Monte Carlo evaluations
Cut-off
min player
max player
Monte Carlo evaluations
Cut-off
min player
max player
Monte Carlo evaluations
Cut-off
min player
max player
.7
Monte Carlo Tree Search (MCTS)
Some games have hidden information!
http://magic.wizards.com/en/events/coverage/gpsin15/father-son-2015-06-27
https://magarena.github.io Lang:Java License:GPLv3
Getting started with open source game playing AIs
Choose a random instantiation of the hidden
information during simulation
Theory Practice
Theory Practice
• Optimal play
• Minimax
• Monte Carlo
tree search
• Sampling hidden
information
Theory Practice
• Optimal play
• Minimax
• Monte Carlo
tree search
• Sampling hidden
information
Stockfish Pachi

More Related Content

PPTX
NCompass Live: Let's Get Real About Virtual Reality
PDF
Videos on Android - Stuff What I Learned
PDF
Dev ops
PPTX
5 min presentation
PPT
NetRacer for the Commodore 64
TXT
History
PPT
Experimenting with One Frequency
NCompass Live: Let's Get Real About Virtual Reality
Videos on Android - Stuff What I Learned
Dev ops
5 min presentation
NetRacer for the Commodore 64
History
Experimenting with One Frequency

What's hot (20)

PDF
Openstack installation using rdo
PPTX
O meu computador
PDF
Openstack kilo installation using rdo
PPTX
你不知道的前端
PPTX
NodeMCU setup LUA
TXT
Cluster setup multinode_aws
PDF
Jvm的最小使用内存测试
PDF
Raspberry Pi Bake-Off
PDF
Remastering of ubuntu
PPTX
Spesifikasi server
PPTX
Building a secure bastion, or, 50 ways to kill your server
PDF
3 manual installation of open vpn
PPTX
Installing OpenStack Juno using RDO on RHEL
PDF
INSTALLION OF BI
PPT
Ict - Motherboard
PPT
La2 Motherboard
PPT
Motherboard
PPTX
System administration
PDF
One key sheard site to site open vpn
Openstack installation using rdo
O meu computador
Openstack kilo installation using rdo
你不知道的前端
NodeMCU setup LUA
Cluster setup multinode_aws
Jvm的最小使用内存测试
Raspberry Pi Bake-Off
Remastering of ubuntu
Spesifikasi server
Building a secure bastion, or, 50 ways to kill your server
3 manual installation of open vpn
Installing OpenStack Juno using RDO on RHEL
INSTALLION OF BI
Ict - Motherboard
La2 Motherboard
Motherboard
System administration
One key sheard site to site open vpn
Ad

Similar to Getting started with open source game playing AIs (20)

PDF
Programs that Play better than Us
PDF
Beating us at our own Games
PDF
Lessons from Developing an AI to Play Magic: The Gathering
PDF
Chess Engine
PPTX
AlphaZero Vs StockFish – A Literature Review.pptx
PDF
LEARNING CHESS AND NIM WITH TRANSFORMERS
PDF
LEARNING CHESS AND NIM WITH TRANSFORMERS
PDF
Games.4
PDF
chess-180927202627.pdf
PPTX
Chess Engine Programming
PPTX
Chess engine presentation
PPTX
Machine Learning algorithms in Chess game
PPT
AI Lecture 5 (game playing)
PPT
Topic - 6 (Game Playing).ppt
PDF
Building a state of the art AI to play Magic: The Gathering
PDF
AI Strategy Formulation Across Various Game Genres - A Literature Review
PPT
M6 game
PPTX
Artificial_Intelligenceeeeeeeeeeeee.pptx
PDF
GAME THEORY AND MONTE CARLO SEARCH SPACE TREE
PPT
Artificial intelligence games
Programs that Play better than Us
Beating us at our own Games
Lessons from Developing an AI to Play Magic: The Gathering
Chess Engine
AlphaZero Vs StockFish – A Literature Review.pptx
LEARNING CHESS AND NIM WITH TRANSFORMERS
LEARNING CHESS AND NIM WITH TRANSFORMERS
Games.4
chess-180927202627.pdf
Chess Engine Programming
Chess engine presentation
Machine Learning algorithms in Chess game
AI Lecture 5 (game playing)
Topic - 6 (Game Playing).ppt
Building a state of the art AI to play Magic: The Gathering
AI Strategy Formulation Across Various Game Genres - A Literature Review
M6 game
Artificial_Intelligenceeeeeeeeeeeee.pptx
GAME THEORY AND MONTE CARLO SEARCH SPACE TREE
Artificial intelligence games
Ad

More from Melvin Zhang (15)

PDF
How Alan Turing accidentally invented Software
PDF
Solving the TSP for warehouses
PDF
Optimize all the things with MiniZinc
PDF
AMKSS Career Conference 2018: Software Engineering
PDF
Building a Turing Machine emulator to explore Turing's great ideas
PDF
Functional programming from first principles
PDF
Binary Lambda Calculus and Combinatory Logic
PDF
AMKSS Career Conference 2015: Programming
PDF
Efficient Selectivity and Backup Operators in Monte-Carlo Tree Search
PDF
Quest for the optimal algorithm
PDF
Playing Games by Throwing Dice
PDF
Becoming a better problem solver: a CS perspective
PDF
Ortholog assignment
PDF
Building pipelines with Make
PDF
Opportunities in STEM
How Alan Turing accidentally invented Software
Solving the TSP for warehouses
Optimize all the things with MiniZinc
AMKSS Career Conference 2018: Software Engineering
Building a Turing Machine emulator to explore Turing's great ideas
Functional programming from first principles
Binary Lambda Calculus and Combinatory Logic
AMKSS Career Conference 2015: Programming
Efficient Selectivity and Backup Operators in Monte-Carlo Tree Search
Quest for the optimal algorithm
Playing Games by Throwing Dice
Becoming a better problem solver: a CS perspective
Ortholog assignment
Building pipelines with Make
Opportunities in STEM

Recently uploaded (20)

PPT
Mechanical Engineering MATERIALS Selection
PPTX
additive manufacturing of ss316l using mig welding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
composite construction of structures.pdf
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Sustainable Sites - Green Building Construction
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Mechanical Engineering MATERIALS Selection
additive manufacturing of ss316l using mig welding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
R24 SURVEYING LAB MANUAL for civil enggi
composite construction of structures.pdf
UNIT 4 Total Quality Management .pptx
573137875-Attendance-Management-System-original
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Sustainable Sites - Green Building Construction
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...

Getting started with open source game playing AIs