-
Notifications
You must be signed in to change notification settings - Fork 3
/
GameBoard.java
56 lines (50 loc) · 1.03 KB
/
GameBoard.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Team One
* Gomoku
* CSCE 320 - Spring 2015
* 3/16/2015
* Java - JVM
* Sources:
*
* Revisions:
* 3/14/2015 - Class created by Joseph Bowley.
*/
public class GameBoard {
private int[][] board;
/**
* GameBoard constructor.
* Passes in dimensions of the board.
* @param x
* @param y
*/
public GameBoard(int x, int y)
{
}
/**
* Makes a move on the board for one of the two players active in a game.
* If player is true, the user is making the move.
* If player is false, an opponent is making the move.
* @param x
* @param y
* @param player
*/
public void makeMove(int x, int y, boolean player)
{
}
/**
* Returns the representation of the gameBoard
* @return
*/
public int[][] getBoard()
{
return board;
}
/**
* Returns if there is a five in a row on the board.
* @return
*/
public boolean isFiveInARow()
{
return false;
}
}