Game Board

Game board contains functions to display, interact with, and manipulate the backgammon game board.

<ditaa noedgesep center>

                                         Die Class
                                   /-------------------\
                                   |c978  board.h      |
                                   +-------------------+
                                   |                   |
                                   |  Definitions for  |
                                   |  game board       |
                                   |  functions        |
                                   \---------*---------/
                                             |
          /----------------------+-----------+-----------+---------------------------\
          |                      |                       |                           |                
/---------*---------\  /---------*---------\   /---------*---------\      /----------*---------\
|c978 accessor.cc   |  |c978  create.cc    |   |c978 destroy.cc    |      |c978   board.cc     |
+-------------------+  +-------------------+   +-------------------+      +--------------------+
|                   |  |Board Board()      |   |Board  ~Board()    |      |void screen_init()  |
|                   |  |                   |   |                {d}|      |void update_board() |
|                   |  |                {d}|   +-------------------+      |void loadGamePieces(|
|                   |  +-------------------+                              |void screen_end()   |
|                   |                                                     |int create_board()  |
|                {d}|                                                     |                 {d}|
+-------------------+                                                     +--------------------+

</ditaa>

FILES:

Function Parameter(s) Return value
screen_init() none void
screen_init();
Function Parameter(s) Return value
create_board() none void
create_board();
Function Parameter(s) Return value
update_board() none void
update_board();
Function Parameter(s) Return value
determine_move() int success
determine_move(int dieValue1, int dieValue2);
Function Parameter(s) Return value
screen_end() none void
screen_end()
Function Parameter(s) Return value
do_plr_move() int, int success
do_plr_move(int source, int moveNum);
Function Parameter(s) Return value
do_cmp_move() int, int success
do_cmp_move(int source, int moveNum);
Function Parameter(s) Return value
err() int string
err(int error_num);
Function Parameter(s) Return value
int loadGamePieces() none int
loadGamePieces();