-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.java
More file actions
30 lines (27 loc) · 714 Bytes
/
Copy pathGame.java
File metadata and controls
30 lines (27 loc) · 714 Bytes
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
/**
* Performs basic actions of game play including taking turns, checking for
* checkmate conditions, and allowing a player to move.
*/
public class Game
{
GameBoard board;
/**
* Constructor for objects of class Game
*/
public Game()
{
board = new GameBoard();
}
//white player turn
//add white move to move history
//if black is in checkmate or draw condition
//game over
//if black is in check
//affect black's move conditions
//black player turn
//add black move to move history
//if white is in checkmate or draw condition
//game over
//if white is in check
//affect white's move conditions
}