-
Notifications
You must be signed in to change notification settings - Fork 0
/
life.h
47 lines (46 loc) · 1.08 KB
/
life.h
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
/*
* =====================================================================================
*
* Filename: life.h
*
* Description: The header for the game of life project
*
* Version: 1.0
* Created: 11/08/2012 10:51:26 PM
* Revision: none
* Compiler: gcc
*
* Author: Ross Guarino (eos@csh.rit.edu)
* Organization: Computer Science House
*
* =====================================================================================
*/
/**
*gets the board value at the location
*/
int getBoard( int row, int column);
/**
*sets the board value given to the new value
*/
void setBoard( int row, int column, int value);
/**
* Flushes the buffer to the specified row
*/
void flushBuffer( int row);
/**
* pushed the value onto the buffer
*/
void pushBuffer(int row, int column, int value);
/**
* Runs through the game once
*/
void gameTick();
/**
* Print the board to standard out, also checks to see if
* the board it empty. Returns true if the board is empty
*/
bool printBoard();
/**
* Randomly fills the board
*/
void generateGame();