A simple command-line game of Kalah (examples, mirror) in which you can play against the computer or you can pit different AI players against one another. This implementation is based upon a simple game engine I developed for playing two-player turn-based zero-sum games and includes AI players using the minimax algorithm and alpha-beta pruning. Kalah is written in Ruby using RSpec and Cucumber and was developed entirely by Cody for CS 510 Artificial Intelligence and as a way to learn RSpec and Cucumber. The code is available on my GitHub.
Recent Comments