PSU CS442/542: Combinatorial Games

Spring 2009
Course Syllabus

When: 1400-1550 (2:00-3:50PM) Mondays and Wednesdays, March 30 — June 3 2009
Where: CLY (Clay Bldg) 203
Who: Bart Massey <>
Office Hours: By e-mail appointment
CRN: 64514 (442), 64515 (542)

MiniChess Tournament Report

This course concentrates on adversary search using combinatorial search techniques to achieve high-quality tactics in competitive situations. Other successful methods of tackling combinatorial games will also be examined.

There is no course text. However, there are a variety of readings as well as a MiniChess tutorial .


  1. . Build a random Mini-Chess player
  2. . Build a Mini-Chess player
  3. . Build a competent Mini-Chess player
  4. . Course Project

Course Schedule

Date Topics Readings HW
3/30 Games Computers Play
Introduction to Mini-Chess
[esai]; [mc] intro, 1-4 HW 1
4/6 Search In Games
Minimax Search in Mini-Chess
[mc] 6-8 HW 2
4/13 AB, TTables, Advanced Search [abmn], [abav],[mtdf] HW3
4/20 Games and AI [guest lectures]    
4/27 Advanced Search concluded    
5/04 Openings and Endgames [crga],[mrga],[book]  
5/11 Probability and Hidden Information [scev],[mavn]  
5/18 Machine Learning [lgst],[glem]  
5/25 Memorial Day, Review [ghi]  
6/01 Playtime, Final Thoughts    

About The Course

The catalog says

This course covers the theory and practice of finding optimal and satisfying solutions to one-player and two-player combinatorial games, including such popular games as Sokoban, Othello, checkers, chess, backgammon, bridge, and CCGs. Simple applications in decision theory and economics may also be discussed. Emphasis on implementation of state-of-the-art solution techniques. Prerequisites include CS 350 (Algorithms) or equivalent experience, plus fluency in some reasonable programming language. Previous AI experience is not required, but may prove helpful.

This course should be a huge amount of fun. Please let me know if you have questions I can answer, or just want to chat about some fascinating material.


  • A good working knowledge of algorithms, data structures, and computational complexity.

  • The ability to write medium-sized programs in a reasonable programming language.

  • Basic reasoning skills, and the ability to quickly read and understand complex material.

  • Sincere interest in the subject area.

If you are unwilling to devote substantial out-of-class time and really get into this topic, you will likely be disappointed in both the course and your performance. Come prepared to work hard and play hard!

Previous Offerings

This course has been offered a number of times previously:

In addition, I taught this material this Winter as a 2.5 day short course at the Fachhochschule Würzburg-Schweinfurt.

Course Load

This course is intended to dig very quickly and deeply into this cutting-edge topic. As such, students not prepared to devote substantial out-of-class time to programming, learning, and exploring are unlikely to achieve a passing grade.

The course will move very quickly, and if you get behind, you will never catch up. No incompletes will be given (except in the most catastrophic of personal circumstances). Homework turned in after the following assignment's due date or after the last scheduled acceptance date will be silently discarded.

E-mail and Web

This web page is There are several e-mail addresses associated with the course.

The e-mail address <> is the course mailing list (using mailman). Subscribe to this by visiting, and use it for class discussions and most questions.

<> will send e-mail to me: use this for homework submissions, and for private questions.


Required Text

There will not be a required text. Almost any artificial intelligence text gives the basics of game tree search; you'll probably want to find one and read it.

Required Readings

Andrew Appel and Guy Jacobson. The World's Fastest Scrabble Program. Communications of the ACM 31(5) pp. 572-578, May 1988.
Michael Buro. Efficient Approximation Of Backgammon Race Equities. ICCA Journal 22(3) (1999), pp. 133-142.
Michael Buro. From Simple Features To Sophisticated Evaluation Functions. Proceedings Of The First International Conference on Computers and Games (CG '98), Tsukuba, Japan. Published in LNCS vol. 1558, Springer-Verlag.
Michael Buro. Improving Heuristic Mini-Max Search By Supervised Learning. NECI Technical Report #106 (NEC 2000).
Michael Buro. ProbCut: An Effective Selective Extension of the αβ Algorithm. ICCA Journal vol. 18, 1995.
Michael Buro. Toward Opening Book Learning. Proceedings of the IJCAI-97 Workshop on Using Games as an Experimental Testbed for AI Research.
Murray Campbell. The graph-history interaction problem. Proceedings of the 1985 ACM annual conference on the range of computing: mid-80's perspective. October 1985.
Ralph Gasser. Applying Retrograde Analysis to Nine Men's Morris. In Heuristic Programming in Artificial Intelligence; The Second Computer Olympiad, D.N.L. Levy and D.F. Beal (ed.), 1991.
Matt Ginsberg. Essentials of Artificial Intelligence, chapters 3 and 4. Morgan Kaufman, 1993. ISBN 1-55860-221-6.
Matt Ginsberg. Partition Search. Proc. 1997 National Conference on Artificial Intelligence (AAAI '97).
Kevin Gurney. Computers and Symbols versus Nets and Neurons. Pre-publication draft, UCL Press.
A.X. Jiang, Michael Buro. First experimental results of ProbCut applied to Chess. Advances in Computer Games Conference 10, 2003.
Robert Lake, Jonathan Schaeffer, and Paul Lu. Solving Large Retrograde Analysis Problems Using a Network of Workstations. Advances in Computer Chess VII, Maastricht, Netherlands, 1994.
Bart Massey et al. All About Minichess. Web document, on site, 2009.
Judea Pearl. The solution for the branching factor of the alpha-beta pruning algorithm and its optimality. Communications of the ACM (25)8, August 1982.
Aske Plaat. Best-First Fixed-Depth Minimax Algorithms. J. Art. Int. 187:1-2 (November 1996) pp. 255-293.
Brian Sheppard. Mastering Scrabble. IEEE Intelligent Systems 14:6 (November/December 1999) pp. 15-16.
James R. Slagle and John K. Dixon. Experiments with some programs that search game trees. Journal of the ACM (16)2, April 1969.
J.D. Williams. The Compleat Strategist. McGraw-Hill 1954.


  • Check out the First and Second International Rock-Scissors-Paper Programming Competition.

  • Iocaine Powder is the 1999 Rock-Scissors-Paper computer champ.

  • MTD(f) is a top-flight modern adversary search algorithm.

  • Thanks to Rolla Selbak for recommending this useful summary of minimax, negamax, alpha-beta, and zero-window search.

  • Thanks to Zan Gligorov for recommending this summary site on machine learning methods in combinatorial and other games.

  • This is a very nice reference to a lot of the ideas in this course as they pertain to chess, written for a similar course in the U.K.

  • This is a lovely collection of links on the theory of combinatorial games (where the author defines "combinatorial" as roughly "two-player zero-sum alternating").

  • Thanks to Jamey Sharp for recommending this good collection of ideas in chess programming. (MTD(f) subsumes some of what is there: read carefully.)


The coursework will consist primarily of a course-long individual programming project, implementing a player for an adversary game and evaluating adversary performance. You may cooperate with other students in your work, as long as you credit those students. However, you are expected to produce your own work product, independent of others.

Those experimenting with departmental computers must follow the "safety guidelines".

No quizzes or examinations are currently planned, but I reserve the option to schedule them at a later date.

Academic Honesty

If I catch you plagiarizing any material, I will do what I legally and ethically can to end your academic career. Plagiarism is using anyone else's works, writings, or ideas without explicitly giving them credit. If you get code, ideas, or text from a fellow student, put their name on it so that we both know what happened.

In this course, you will be expected to do a lot in a short time, in a sometimes competitive environment. This is not an excuse to do things that are unethical, immoral, or illegal.

We will occasionally play our programs off against each other, most notably at the end of the course. This will never harm your grade. Your program may be able to win these contests by "cheating". If so, you will receive due credit for this, as long as you explicitly acknowledge and explain your methods up front. If you fail to do so, and your program is caught deliberately cheating, it will lose the tournament it participates in, and you will receive a 0 for the related assignment.