|
Last change
on this file since 67 was
44,
checked in by mszubert, 16 years ago
|
|
cecj, framsticks and games packages imported
|
|
File size:
504 bytes
|
| Rev | Line | |
|---|
| [44] | 1 | package games; |
|---|
| 2 | |
|---|
| 3 | import java.util.List; |
|---|
| 4 | |
|---|
| 5 | /** |
|---|
| 6 | * Interface describing game rules. Implementing class manages the game state. |
|---|
| 7 | * |
|---|
| 8 | * @author Marcin Szubert |
|---|
| 9 | * |
|---|
| 10 | */ |
|---|
| 11 | public interface BoardGame { |
|---|
| 12 | |
|---|
| 13 | public boolean endOfGame(); |
|---|
| 14 | |
|---|
| 15 | public double evalMove(Player player, GameMove move); |
|---|
| 16 | |
|---|
| 17 | public List<? extends GameMove> findMoves(); |
|---|
| 18 | |
|---|
| 19 | public int getCurrentPlayer(); |
|---|
| 20 | |
|---|
| 21 | public int getOutcome(); |
|---|
| 22 | |
|---|
| 23 | public void makeMove(GameMove move); |
|---|
| 24 | |
|---|
| 25 | public void reset(); |
|---|
| 26 | |
|---|
| 27 | public void switchPlayer(); |
|---|
| 28 | |
|---|
| 29 | public Board getBoard(); |
|---|
| 30 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.