Post Reply 
John Conway's Game of Life
10-28-2020, 07:08 PM
Post: #9
RE: John Conway's Game of Life
(10-28-2020 06:50 AM)Arno K Wrote:  
(10-27-2020 10:11 PM)btabone Wrote:  What size grid are you specifying? I'll try it out on my end. I test in the PC simulator and on my gen 2 HP prime. I usually run a 50x50 grid.

Well, when I start it from the program-catalogue I am prompted to input a number, the same as entering in the input line, I tried diverse (2,3,50,100) on my HW2 always that error.
Arno

Are you running the code from https://github.com/hybridmachine/hpprime...eOfLife.hp ? I have a commented out SUBGROB line but no DIMGROB . It should prompt you for two things. The first is the size of the play board (50 works well for me) the second is the starting pattern. In any event, I am working on some memory optimizations, I think passing around the board matrix like that is eating up stack memory for the functions, I'm going to experiment with making it a program global then longer term I'll look at using bit masks instead of complete integers for the on/off state info held in that matrix.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
John Conway's Game of Life - btabone - 10-26-2020, 03:02 PM
RE: John Conway's Game of Life - Arno K - 10-27-2020, 03:41 PM
RE: John Conway's Game of Life - btabone - 10-27-2020, 10:11 PM
RE: John Conway's Game of Life - Arno K - 10-28-2020, 06:50 AM
RE: John Conway's Game of Life - btabone - 10-28-2020 07:08 PM
RE: John Conway's Game of Life - btabone - 10-27-2020, 10:21 PM
RE: John Conway's Game of Life - pinkman - 10-27-2020, 10:31 PM
RE: John Conway's Game of Life - btabone - 10-28-2020, 02:11 AM
RE: John Conway's Game of Life - Arno K - 10-29-2020, 02:41 PM
RE: John Conway's Game of Life - btabone - 10-30-2020, 02:28 AM
RE: John Conway's Game of Life - Arno K - 10-30-2020, 04:31 PM
RE: John Conway's Game of Life - btabone - 11-02-2020, 10:58 PM



User(s) browsing this thread: 1 Guest(s)