Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eeddf0d
Showing
460 changed files
with
6,914 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
------------------------------------------------------------- | ||
|
||
|
||
jaGOF - John Conway's Game of Life | ||
release: 0.1.0 | ||
|
||
Copyright (C) 2011 Luca Amore <luca.amore at gmail.com> | ||
|
||
relased: 02/14/2011 | ||
|
||
|
||
------------------------------------------------------------- | ||
|
||
GOF is based on: | ||
|
||
python-pygame - SDL bindings for games development in Python | ||
|
||
------------------------------------------------------------- | ||
LICENSE | ||
|
||
jaGOF is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
jaGOF is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with GOF. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
Luca Amore | ||
luca.amore at gmail.com | ||
http://www.lucaamore.com | ||
|
||
------------------------------------------------------------- | ||
RESOURCES | ||
|
||
for more information about Conway's Game of Life, visit: | ||
|
||
http://www.conwaylife.com/wiki | ||
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life | ||
|
||
------------------------------------------------------------- | ||
USAGE | ||
|
||
./jaGof | ||
|
||
or | ||
|
||
./jaGof <filename> | ||
|
||
to read seed file with initial pattern in .cell format | ||
|
||
------------------------------------------------------------- | ||
CONFIGURATION FILE | ||
|
||
life.conf | ||
|
||
------------------------------------------------------------- | ||
SEED PATTERNS | ||
|
||
In the dir seeds there are 400+ seed files downloaded from: | ||
http://www.bitstorm.org/gameoflife/lexicon/ | ||
thanks to pylife project: | ||
https://github.com/durden/pylife | ||
|
||
You can found interesting and seed patterns here: | ||
http://www.conwaylife.com/wiki | ||
|
||
Have fun! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#################### | ||
# configuration file | ||
#################### | ||
|
||
#----------------- | ||
# life board size | ||
#----------------- | ||
[life] | ||
sizex=80 | ||
sizey=50 | ||
|
||
#------------------- | ||
# screen resolution | ||
#------------------- | ||
[screen] | ||
width=800 | ||
heigth=500 | ||
|
||
#------------------ | ||
# animation delays | ||
#------------------ | ||
[animation] | ||
waitTime_ms=100 | ||
waitTimeMin_ms=10 | ||
waitTimeMax_ms=1000 | ||
waitTimeStep_ms=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/jaGof.py |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
!Name: $rats | ||
! | ||
.....OO..... | ||
......O..... | ||
....O....... | ||
OO.O.OOOO... | ||
OO.O.....O.O | ||
...O..OOO.OO | ||
...O....O... | ||
....OOO.O... | ||
.......O.... | ||
......O..... | ||
......OO.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
!Name: 1-2-3-4 | ||
! | ||
.....O..... | ||
....O.O.... | ||
...O.O.O... | ||
...O...O... | ||
OO.O.O.O.OO | ||
O.O.....O.O | ||
...OOOOO... | ||
........... | ||
.....O..... | ||
....O.O.... | ||
.....O..... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!Name: 1-2-3 | ||
! | ||
..OO...... | ||
O..O...... | ||
OO.O.OO... | ||
.O.O..O... | ||
.O....O.OO | ||
..OOO.O.OO | ||
.....O.... | ||
....O..... | ||
....OO.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!Name: 101 | ||
! | ||
....OO......OO.... | ||
...O.O......O.O... | ||
...O..........O... | ||
OO.O..........O.OO | ||
OO.O.O..OO..O.O.OO | ||
...O.O.O..O.O.O... | ||
...O.O.O..O.O.O... | ||
OO.O.O..OO..O.O.OO | ||
OO.O..........O.OO | ||
...O..........O... | ||
...O.O......O.O... | ||
....OO......OO.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
!Name: 17c45_spaceship | ||
! | ||
...............O | ||
O.............OO | ||
O............OO. | ||
O.............OO | ||
...............O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!Name: 4-8-12_diamond | ||
! | ||
....OOOO.... | ||
............ | ||
..OOOOOOOO.. | ||
............ | ||
OOOOOOOOOOOO | ||
............ | ||
..OOOOOOOO.. | ||
............ | ||
....OOOO.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
!Name: 4_boats | ||
! | ||
...O.... | ||
..O.O... | ||
.O.OO... | ||
O.O..OO. | ||
.OO..O.O | ||
...OO.O. | ||
...O.O.. | ||
....O... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!Name: AK47_reaction | ||
! | ||
.....O.... | ||
....O.O... | ||
...O...O.. | ||
...O...O.. | ||
...O...O.. | ||
....O.O... | ||
.....O.... | ||
.......... | ||
..OO...... | ||
...O...... | ||
OOO.....OO | ||
O.......OO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
!Name: A_for_all | ||
! | ||
....OO.... | ||
...O..O... | ||
...OOOO... | ||
.O.O..O.O. | ||
O........O | ||
O........O | ||
.O.O..O.O. | ||
...OOOO... | ||
...O..O... | ||
....OO.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
!Name: Achims_p144 | ||
! | ||
OO........................OO | ||
OO........................OO | ||
..................OO........ | ||
.................O..O....... | ||
..................OO........ | ||
..............O............. | ||
.............O.O............ | ||
............O...O........... | ||
............O..O............ | ||
............................ | ||
............O..O............ | ||
...........O...O............ | ||
............O.O............. | ||
.............O.............. | ||
........OO.................. | ||
.......O..O................. | ||
........OO.................. | ||
OO........................OO | ||
OO........................OO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!Name: Achims_p16 | ||
! | ||
.......OO.... | ||
.......O.O... | ||
..O....O.OO.. | ||
.OO.....O.... | ||
O..O......... | ||
OOO.......... | ||
............. | ||
..........OOO | ||
.........O..O | ||
....O.....OO. | ||
..OO.O....O.. | ||
...O.O....... | ||
....OO....... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!Name: Achims_p4 | ||
! | ||
..OO...OO.. | ||
.O..O.O..O. | ||
.O.OO.OO.O. | ||
OO.......OO | ||
..O.O.O.O.. | ||
OO.......OO | ||
.O.OO.OO.O. | ||
.O..O.O..O. | ||
..OO...OO.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!Name: Achims_p8 | ||
! | ||
.OO...... | ||
O........ | ||
.O...O... | ||
.O...OO.. | ||
...O.O... | ||
..OO...O. | ||
...O...O. | ||
........O | ||
......OO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
!Name: B-52_bomber | ||
! | ||
.OO.................................... | ||
.OO.................O.................. | ||
...................O.O............O.O.. | ||
....................O............O..... | ||
OO.......OO.......................O..O. | ||
OO.O.....OO.......................O.O.O | ||
...O.......................O.......O..O | ||
...O.......................OO.......OO. | ||
O..O.................OO.....O.......... | ||
.OO..................O................. | ||
.....................OOO............... | ||
....................................OO. | ||
....................................OO. | ||
.OO.................................... | ||
O..O................................... | ||
O.O.O................O.O....OO.....OO.. | ||
.O..O.................OO....OO.....OO.O | ||
.....O............O...O...............O | ||
..O.O............O.O..................O | ||
..................O................O..O | ||
....................................OO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
!Name: B-heptomino | ||
! | ||
O.OO | ||
OOO. | ||
.O.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
!Name: C-heptomino | ||
! | ||
.OOO | ||
OOO. | ||
.O.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!Name: Canada_goose | ||
! | ||
OOO.......... | ||
O.........OO. | ||
.O......OOO.O | ||
...OO..OO.... | ||
....O........ | ||
........O.... | ||
....OO...O... | ||
...O.O.OO.... | ||
...O.O..O.OO. | ||
..O....OO.... | ||
..OO......... | ||
..OO......... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
!Name: Canada_goose | ||
! | ||
........OO... | ||
.......OO.... | ||
.........O... | ||
...........OO | ||
..........O.. | ||
............. | ||
.........O..O | ||
.OO.....OO... | ||
OO.....O..... | ||
..O....O.O... | ||
....OO..O.... | ||
....OO....... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
!Name: Cheshire_cat | ||
! | ||
.O..O. | ||
.OOOO. | ||
O....O | ||
O.OO.O | ||
O....O | ||
.OOOO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
!Name: Coe_ship | ||
! | ||
....OOOOOO | ||
..OO.....O | ||
OO.O.....O | ||
....O...O. | ||
......O... | ||
......OO.. | ||
.....OOOO. | ||
.....OO.OO | ||
.......OO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
!Name: Coes_p8 | ||
! | ||
OO.......... | ||
OO..OO...... | ||
.....OO..... | ||
....O..O.... | ||
.......O..OO | ||
.....O.O..OO |
Oops, something went wrong.