TSE: Game: Game of Life: life.s by Carlo Hogeveen: some additions

7 views
Skip to first unread message

knud van eeden

unread,
Apr 17, 2022, 6:14:52 PMApr 17
to SemWare TSE Pro Text Editor
Hello,

1. I am watching a video about
 
 Design Patterns (using the 'Gang of four' book)

by Allen Holub, where he is developing a 'Game of Life'

2. So based on that I downloaded the latest version 
   of author Carlo Hogeveen's life.zip


3. and FYI I have added some more patterns there taken from the Wikipedia page about Game of Life
plus a link to some 1500 other patterns where you can add yourself further from for example

4. A few changes made:
1) More patterns added to the 'Initialize' menu.
2) menu shown automatically after running life.s now
3) You can use the 'r' to run the pattern

5. Typical steps:
1) Compile once, then run life.s
2) Choose e.g 'Initialize' to select a (default) pattern
3) Then press 'r' to run that chosen (default) pattern
4) The wait time has been set default to 0, in order to show it developing faster. 
   Optionally press 's' to slow again.
5) To choose a new pattern, press <F10> then 'Initialize' again
6) To clear the screen completely choose 'Initialize' > 'Empty'
7) To quit press <Escape>

6. see also the attached zipped life.s

7. A very interesting program further, very good made by Carlo Hogeveen.

with friendly greetings
Knud van Eeden





 






life.zip

knud van eeden

unread,
Apr 18, 2022, 6:59:22 PMApr 18
to SemWare TSE Pro Text Editor, TSE Editor List
Hello,

a. I am watching a video about
 
 Design Patterns (using the 'Gang of four' book)

by Allen Holub, where he is developing a 'Game of Life'

b. So based on that I downloaded the latest version 
   of author Carlo Hogeveen's life.zip


c. and FYI I have added some more patterns there taken from the Wikipedia page about Game of Life
plus a link to some 5000 other patterns where you can add yourself further from for example

d. If you download the file with all the patterns 
that is found here:
unzip it in a directory of your choice (e.g. c:\temp\
then replace in this attached life.s
the directory, like this;

 s1 = FNListS( "c:\temp\" )

then you can choose from a list with about 2000 Game of Life patterns (in .cells format), which it then will convert to Carlo Hogeveen's 0 and 1 default pattern format automatically, which you can then run (press 'r').

e. If you do not use step 4) you can input an individual .cells file.

f. Note that .rle files are currently NOT supported, only .cells files. But I plan to have a look at that soon.

g. Changes made:

1) Input also .cells pattern files
2) More default patterns added to the 'Initialize' menu.
3) menu shown automatically after running life.s now
4) You can use the 'r' to run the pattern

h. Typical steps:

1) Compile once, then run life.s
2) Choose e.g 'Initialize' to select a (default) pattern
3) Then press 'r' to run that chosen (default) pattern
4) The wait time has been set default to 0, in order to show it developing faster. 
   Optionally press 's' to slow again.
5) To choose a new pattern, press <F10> (or the right mouse button) then 'Initialize' again
6) To clear the screen completely choose 'Initialize' > 'Empty'
7) To quit press <Escape>

i. All this is tested on TSE version 4.42.00 only. Other earlier TSE versions are not tested.

j. see also the attached zipped life.s

k. A very interesting program further, very good made by Carlo Hogeveen.
life.zip

knud van eeden

unread,
Apr 20, 2022, 5:16:54 PMApr 20
to SemWare TSE Pro Text Editor, TSE Editor List
Hello,

1. I created a .rle (=run length encoding) converter to .cells.

2. So currently basically all about 3000 files (.rle or .cells) can now be run with the program
(but if same name of the pattern then same output result, e.g. blinker.rle and blinker.cell both gave the same output result)

Steps:

1. Unzip the file life.zip

2. It contains 2 filenames, the life.s program 

3. and the file data.txt which contains the pattern filenames.

4. Download the 3000 .rle and .cells files here


and unzip it in the directory of your choice.

5. Then In the file 'life.s'

   search for this line 

    InsertFile( "g:\mydownloadfiles\from_job_to_home\life\data.txt" ) 

   and change this to the location of your data.txt 

6. Then in the file 'life.s'

   search for this line

     s1 = FNListS( "g:\mydownloadfiles\from_job_to_home\life\dddall\" ) 

   and replace it with the directory where you unzipped that all.zip file

7. Then recompile 'life.s' once and run it

8. Then choose e.g. in the menu 'Initialize' > 'Select a .cells or .rle file' > select the file
then press 'r' to run it.

9. See also example images here:



===


a. I am watching a video about
 
 Design Patterns (using the 'Gang of four' book)

by Allen Holub, where he is developing a 'Game of Life'

b. So based on that I downloaded the latest version 
   of author Carlo Hogeveen's life.zip


c. and FYI I have added some more patterns there taken from the Wikipedia page about Game of Life
plus a link to some 5000 other patterns where you can add yourself further from for example

d. If you download the file with all the patterns 
that is found here:
unzip it in a directory of your choice (e.g. c:\temp\
then replace in this attached life.s
the directory, like this;

 s1 = FNListS( "c:\temp\" )

then you can choose from a list with about 3000 Game of Life patterns (in .cells or .rle format), which it then will convert to Carlo Hogeveen's 0 and 1 default pattern format automatically, which you can then run (press 'r').

e. If you do not use step 4) you can input an individual .cells or .rle file.

f. Note that .rle files are now supported, besides .cells files. But they should give the same result, inside is only a different notation (verbatim using (. for 0 and O for 1) in .cells files and run length encoding in .rle files)

g. Changes made:

1) Input also .cells pattern files
2) Input also .rle pattern files
3) More default patterns added to the 'Initialize' menu.
4) menu shown automatically after running life.s now
5) You can use the 'r' to run the pattern
6) You can use the 'e' to empty the screen
7) You can use the <F10>, or right mouse button, or 'i' to show the menu.
8) Then choose 'i' again to select a pattern from the list

h. Typical steps:

1) Compile once, then run life.s
2) Choose e.g 'Initialize' to select a (default) pattern
3) Choose 'i' again to select a pattern from the list
4) Then press 'r' to run that chosen (default) pattern
5) The wait time has been set default to 0, in order to show it developing faster. 
   Optionally press 's' to slow again.
6) To choose a new pattern, press <F10> (or the right mouse button) then 'Initialize' again
7) To clear the screen completely choose 'Initialize' > 'Empty'
8) To quit press <Escape>
life.zip

knud van eeden

unread,
Apr 20, 2022, 5:36:50 PMApr 20
to TSE Pro Support, TSE Pro Support
Here a short video demonstrating it on TikTok

https://vm.tiktok.com/ZMLbUtPu3/

Sent from Yahoo Mail on Samsung Galaxy Note 9 black 512 gigabytes

----- Forwarded Message -----
From: "knud van eeden" <knud_va...@yahoo.com>
To: "SemWare TSE Pro Text Editor" <sem...@googlegroups.com>, "TSE Editor List" <tse...@freelists.org>
Cc:
Sent: Wed, Apr 20, 2022 at 23:16
Subject: Re: TSE: Game: Game of Life: life.s by Carlo Hogeveen: some additions


On Wednesday, April 20, 2022, 10:06:23 PM GMT+2, knud van eeden <knud_va...@yahoo.com> wrote:


Hello,

1. I created a .rle (=run length encoding) converter to .cells.

2. So currently basically all about 3000 files (.rle or .cells) can now be run with the program.
g. Changes made:

1) Input also .cells pattern files
2) Input also .rle pattern files
3) More default patterns added to the 'Initialize' menu.
4) menu shown automatically after running life.s now
5) You can use the 'r' to run the pattern
6) You can use the 'e' to empty the screen
7) You can use the <F10>, or right mouse button, or 'i' to show the menu.
h. Typical steps:

1) Compile once, then run life.s
2) Choose e.g 'Initialize' to select a (default) pattern
3) Then press 'r' to run that chosen (default) pattern
4) The wait time has been set default to 0, in order to show it developing faster. 
   Optionally press 's' to slow again.
5) To choose a new pattern, press <F10> (or the right mouse button) then 'Initialize' again
6) To clear the screen completely choose 'Initialize' > 'Empty'
7) To quit press <Escape>
life.zip
Reply all
Reply to author
Forward
0 new messages