Winner
Новичок
Не получается перевести
Здравствуйте друзья!
Помогите пожалуйста, не совсем понимаю, что от меня хотят, не получается перевести. Привожу первоначальный текст с моим вариантом перевода.
--------------------
Consider a representation of a "world" as an n by n matrix.
= Представьте себе мир в виде матрицы.
Each element in the matrix may contain 1 organism.
= Каждый элемент которой может содержать 1 организм.
Each organism lives, dies and reproduces according to the following set of rules:
= Каждый организм живет, умирает и размножается в зависимости от следующего набора правил:
- If there are two or three organisms of the same type living in the elements surrounding an organism of the same, type then it may survive.
=Если два или три организма одного типа живут в окружении элементов организма того же типа то они могут пережить. (какая-то белиберда получается)
- If there are less than two organisms of one type surrounding one of the same type then it will die due to isolation.
=Если есть меньше чем два организма одного типа окружающие(?) одним из подобных типов тогда он умрет из-за изоляции.
- If there are four or more organisms of one type surrounding one of the same type then it will die due to overcrowding.
=Если есть 4 или больше организмов одного типа окружающие один из подобных типов тогда они умрут из-за перенаселения.
- If there are exactly three organisms of one type surrounding one element, they may give birth into that cell. The new organism is the
same type as its parents.
Если есть ровно три организма одного типа окружающие один элемент тогда они могут породить в ту ячейку.(странно из предыдущего текста вроде бы вытекает, что в одной ячейке может быть только один организм)
If this condition is true for more then one
species on the same element then species type for the new element is chosen randomly.
Если эти условия правдивы для более чем одного вида (а вид каким здесь боком?) того же элемента(?) тогда тип вида для нового элемента будет выбран случайно.
Без выяснения выше изложенного дальше переводить не имеет смысла. В тоже время последующий текст может помочь Вам в понятии предыдущего.
- If two organisms occupy one element, one of them must die (chosen
randomly) (only to resolve initial conflicts).
The "world" and initial distribution of organisms within it is defined by an XML file of the following format:
<?xml version="1.0" encoding="UTF-8"?>
<life>
<world>
<cells>n</cells> // Dimension of the square "world"
<species>m</species> // Number of distinct species
<iterations>4000000</iterations> // Number of iterations to be calculated
</world>
<organisms>
<organism>
<x_pos>x</x_pos> // x position
<y_pos>y</y_pos> // y position
<species>t</species> // Species type
<organism>
</organisms>
</life>
After iterations, the state of the "world" is to be saved in an XML file, out.xml, of the same format as the initial definition file.
It is possible to realise visual output using http://www.pygame.org/news.html .
Code should be understandable and commented. If it is not obvious from the code or comments then the code should be supplied with a written overview of the application structure and thought processes.
The aim is not speed of implementation, rather a "beautiful" solution.
However, an overcomplicated solution is not desired, (conditions are fixed, think only in 2d n by n, the number of species can be limited to a maximum of 5).
Здравствуйте друзья!
Помогите пожалуйста, не совсем понимаю, что от меня хотят, не получается перевести. Привожу первоначальный текст с моим вариантом перевода.
--------------------
Consider a representation of a "world" as an n by n matrix.
= Представьте себе мир в виде матрицы.
Each element in the matrix may contain 1 organism.
= Каждый элемент которой может содержать 1 организм.
Each organism lives, dies and reproduces according to the following set of rules:
= Каждый организм живет, умирает и размножается в зависимости от следующего набора правил:
- If there are two or three organisms of the same type living in the elements surrounding an organism of the same, type then it may survive.
=Если два или три организма одного типа живут в окружении элементов организма того же типа то они могут пережить. (какая-то белиберда получается)
- If there are less than two organisms of one type surrounding one of the same type then it will die due to isolation.
=Если есть меньше чем два организма одного типа окружающие(?) одним из подобных типов тогда он умрет из-за изоляции.
- If there are four or more organisms of one type surrounding one of the same type then it will die due to overcrowding.
=Если есть 4 или больше организмов одного типа окружающие один из подобных типов тогда они умрут из-за перенаселения.
- If there are exactly three organisms of one type surrounding one element, they may give birth into that cell. The new organism is the
same type as its parents.
Если есть ровно три организма одного типа окружающие один элемент тогда они могут породить в ту ячейку.(странно из предыдущего текста вроде бы вытекает, что в одной ячейке может быть только один организм)
If this condition is true for more then one
species on the same element then species type for the new element is chosen randomly.
Если эти условия правдивы для более чем одного вида (а вид каким здесь боком?) того же элемента(?) тогда тип вида для нового элемента будет выбран случайно.
Без выяснения выше изложенного дальше переводить не имеет смысла. В тоже время последующий текст может помочь Вам в понятии предыдущего.
- If two organisms occupy one element, one of them must die (chosen
randomly) (only to resolve initial conflicts).
The "world" and initial distribution of organisms within it is defined by an XML file of the following format:
<?xml version="1.0" encoding="UTF-8"?>
<life>
<world>
<cells>n</cells> // Dimension of the square "world"
<species>m</species> // Number of distinct species
<iterations>4000000</iterations> // Number of iterations to be calculated
</world>
<organisms>
<organism>
<x_pos>x</x_pos> // x position
<y_pos>y</y_pos> // y position
<species>t</species> // Species type
<organism>
</organisms>
</life>
After iterations, the state of the "world" is to be saved in an XML file, out.xml, of the same format as the initial definition file.
It is possible to realise visual output using http://www.pygame.org/news.html .
Code should be understandable and commented. If it is not obvious from the code or comments then the code should be supplied with a written overview of the application structure and thought processes.
The aim is not speed of implementation, rather a "beautiful" solution.
However, an overcomplicated solution is not desired, (conditions are fixed, think only in 2d n by n, the number of species can be limited to a maximum of 5).