Conway's Game of Life

Completado Publicado Oct 11, 2004 Pagado a la entrega
Completado Pagado a la entrega

* The object of the fourth program is to gain hands on experience declaring and using pointers and dynamic memory.

* This program will be an implementation of John Conway's Game of Life. See [Wikipedia entry for Conway's Game of Life][1] for a more complete discussion.

<!-- -->

* Life is a non-interactive game however the user should be able to:

* input a file name for an initial configuration,

* restart the game with a new configuration,

* determine how many steps should be shown and

* quit the game.

* Life is played on a grid (2-dimensional array) of cells.

* Each cell is marked as either dead or alive.

* Each cell has eight neighbors.

* Each step requires applying the following rules to each cell in the grid:

* If a cell is dead and has exactly three live neighbors it becomes alive otherwise it remains dead. (Birth)

* A live cell with two or three live neighbors stays alive. (Survival)

* A live cell with less two neigbors dies. (Dies of loneliness)

* A live cell with more than three neighbors dies. (Dies of overcrowding)

* Theoretically the grid is infinite. The grid for your implementation should be 40 X 80. The grid should be implemented as a 2 dimensional char array.

* The grid should be output after each step. Use spaces for dead cells and a character for live cells. These are constants which should be defined.

<!-- -->

* Dynamic memory will be used so that memory for grids are allocated and released as needed.

* Functions with pre and post condition are required.

* Testcases:

-will be given to later

* Compile the program using the g++ compiler and the option -Wall as illustrated during class.

* Include internal documentation.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Linux, no classes , and no structures

Ingeniería Linux MySQL PHP Arquitectura de software Verificación de software

Nº del proyecto: #3384682

Sobre el proyecto

6 propuestas Proyecto remoto Activo Oct 13, 2004

Adjudicado a:

cipocvw

See private message.

$1.99 USD en 4 días
(28 comentarios)
3.8

6 freelancers están ofertando un promedio de $14 por este trabajo

spacelabvw

See private message.

$34 USD en 4 días
(151 comentarios)
6.9
bogdanstan

See private message.

$15.3 USD en 4 días
(195 comentarios)
5.7
opengroup

See private message.

$8.5 USD en 4 días
(25 comentarios)
3.9
oxbchdtsfjekf

See private message.

$17 USD en 4 días
(6 comentarios)
3.0
vw1341932vw

See private message.

$8.5 USD en 4 días
(0 comentarios)
0.0