Suljettu

Scheme Programming( vectors)

We can use a two-dimensional square array to implement the game. Each cell in the array holds either * or a blank2. The asterisk represents the presence of an organism, the blank its absence. The game starts with an initial generation, which consists of any

mix of asterisks and blanks; the game, however, becomes interesting only with certain mixes.

Three rules govern the transition from one generation to the next:

a) Birth Rule: An organism is born into any empty cell that has exactly three living neighbours.

b) Survival Rule: An organism with either two or three living neighbours survives from one generation to the next.

c) Death Rule: An organism with four or more neighbours dies from overcrowding. An organism with fewer than two neighbours dies from loneliness.

A neighbour of a cell c is any cell that touches c (this includes all cells that are vertically,horizontally and diagonally adjacent to the cell). A cell that does not lie on the edge has exactly eight neighbors. A cell on the edge has either five or three neighbours depending on where it is located.3

Corner cells (3 neighbours) – and even other edge cells (5 neighbours) – are vulnerable, and they

are less likely to be born.

If we produce many generations, interesting behaviour of the population becomes possible. . The initial configuration

returns after four cycles, but moved one cell down and right.

Program – its top-level procedure – will have a few obvious parameters:

the size of the array;

the character for the live cells;

the number of generations to produce;

the initial configuration randomly generated.

The program will print the required number of generations. Make it simple "ASCII art".

Program in a style that fits Scheme: bottom-up and in modular fashion. Every procedure does something fairly simple, and naturally it checks the correctness of its arguments; it has a "wrapper" to separate the core operation from the correctness test. Keep procedures local as much as possible. Make them as generic as possible

Exactly I am looking for "Game of life" in scheme language. Output format would preffered in the console but a .txt file output for all generation is fine. Intial confuguaration should be random(with user input being how many living cells), Finally if wrong arguments are provided it should spit out an error.

So the following query

generation(#of generation # of intial living organisms m n character of living cell)
generation( 10 5 4 4 *)

In this case:
Number of generations:10
Number of intial living organisms: 5
Array size 4X4
Living character

Taidot: C-ohjelmointi, tietojenkäsittely, Java

Näytä lisää: wrapper programming, vectors programming, vectors in c programming, up programming, top programming, top down programming, the art of programming, programming with game, programming style, programming number, programming if, programming from, programming art, programming array, population of java, number programming, local programming, local edge, live programming, java programming test, java programming program, java population, if programming, generic programming, c programming array

About the Employer:
( 0 reviews ) Gatineau, Canada

Projektin tunnus: #410061

17 freelanceria on tarjonnut keskimäärin 99 $ tähän työhön

artanisz

This is a project with an excellent formal specification. I would be glad to do this "Game of life".

85 $ USD 2 päivässä
(9 arvostelua)
6.5
interpb

Pls kindly view PMB

90 $ USD 3 päivässä
(54 arvostelua)
6.1
azksoft

Hi, please check PMB. Thanks.

45 $ USD 7 päivässä
(21 arvostelua)
4.4
Mainstream4

Please, check PM.

125 $ USD 3 päivässä
(10 arvostelua)
4.3
TheWiseOne

Hello, Check PM. Regards, George

50 $ USD 3 päivässä
(11 arvostelua)
4.2
arunjassiar

I you need it in java , i will be right person for it, java is can be run on any platform, also it will easy to understand the code and implementation of it in java.

200 $ USD 2 päivässä
(5 arvostelua)
3.8
ExtraNet

Hi ertwrules, please see PM

60 $ USD 3 päivässä
(4 arvostelua)
3.3
ruittandem

Hi. 5+ experience in C++. I can do this. Feel free to ask any questions. Regards, Andrew.

30 $ USD 2 päivässä
(1 arvostelu)
2.0
qualitysw

Hi, please check PMB.

100 $ USD 3 päivässä
(0 arvostelua)
0.0
duminda1

Dear Sir, Madam, I have over 3 years of industry experience in developing C++ application. I have done some scheme programming in University.

200 $ USD 15 päivässä
(0 arvostelua)
0.0
RobotChris

Hello, this is a fairly easy project. I really enjoyed playing the game of life as a kid, I would like to do this, infact, I might just do it for fun because I was looking for it a while back and couldn't find a decent Lisää

100 $ USD 3 päivässä
(0 arvostelua)
0.0
jpoli

Check your PMB!

100 $ USD 2 päivässä
(0 arvostelua)
0.0
parikhbn

hi, I m very interested in this [url removed, login to view] give me a chance to prove myself.I am waiting for your valuable reply.Thanks.

100 $ USD 5 päivässä
(0 arvostelua)
0.0
pmtcrespo

Hello, i am a student from IST (portugal) - [url removed, login to view] I have some experience in projects with ansi common LISP and SCHEME. I have already done a project very similar to this one on LISP for the game "Neithbo Lisää

100 $ USD 3 päivässä
(0 arvostelua)
0.0
sameeracharya

See the message board

90 $ USD 2 päivässä
(0 arvostelua)
0.0
meessras

Please see PM. Thank you very much.

100 $ USD 2 päivässä
(0 arvostelua)
0.0
passion411

It will be grateful for u to check my PM. Thank you.

100 $ USD 2 päivässä
(0 arvostelua)
0.0