KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > innig > macker > example > modularity > game > Game


1 package net.innig.macker.example.modularity.game;
2
3 import net.innig.macker.example.modularity.player.*;
4 import java.util.*;
5
6 /**
7     A very simple two-player game in normal form.
8 */

9 public interface Game
10     {
11     public Set getLegalMoves();
12     
13     public void setPlayer(int playerNum, Player player);
14     public Player getPlayer(int playerNum);
15     
16     public int getScore(int playerNum);
17     public Move getPreviousMove(int playerNum);
18     public void move();
19     }
20
Popular Tags