9.2. Small Blue example

This example shows an example of how to distribute a function across a Grid infrastructure based on the Globus Toolkit 2.2. Note that for readability reasons, not all the needed error checking is done for every Globus Toolkit 2.2 API call.

The purpose of the game (called Puissance 4, in French) is to align four chips to win. In this example, a simple artificial intelligence machine plays against a human.

The artificial intelligence is implemented in the GAME.C program available in “GAME Class” on page 337 and works in the following ways:

  • It evaluates the value of each position from the first column to the eighth.

  • For each position, it also evaluates the next positions that the adversary could possibly play and reevaluates ...

Get Enabling Applications for Grid Computing with Globus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.