# Pente using CORBA

This is an adaptation of the Pente game to run in a distributed way using CORBA. Two players each run Pente on their computers and play against each other.

The program is composed of the following parts:

library.dylan
  Dylan library definition
module.dylan
  Dylan module definition
board.dylan
  Dylan implementation of Pente game and distribution
start.dylan
  Dylan entry point
pente.spec
  configuration file for IDL
pente.idl
  the IDL file itself
README.htm
  this file

## Building and Testing the Application

Just press the "Build" button on the Project Window.

After it has finished building press the "Build Release" menu item on the Project menu of the Project window to create a redistributable executable and DLLs for the other player.

Get the other player to copy the "Release" directory to his computer.

Now, you can run the application to test that it works.

- Both players should start up their copies of corba-pente.
- When both copies are running, one player should press "New Game" and enter the hostname of the other player's computer. This initiates the connection.
- Now the player who pressed "New Game" plays first. Try to get 5 stones in a continuous line, or try to surround and capture your opponent's pairs of stones 5 times.

At the end of the game, either player can press "New Game" and go first for the next game.