CSE 511A: Introduction To Artificial Intelligence: Lab 1 Due: October 14
CSE 511A: Introduction To Artificial Intelligence: Lab 1 Due: October 14
Lab 1
Due: October 14
1. In this lab you will write a computer program to play a game,
dots and boxes. (http://en.wikipedia.org/wiki/Dots_and_boxes)
Starting with an empty grid of dots, players take turns, adding a single horizontal
or vertical line between two unjoined adjacent dots. A player who completes the
fourth side of a box earns one point and takes another turn. (The points are
typically recorded by placing in the box an identifying mark of the player, such as
an initial). The game ends when no more lines can be placed. The winner of the
game is the player with the most points.