Post Reply 
John Conway's Game of Life
10-26-2020, 03:02 PM (This post was last modified: 11-06-2020 03:30 PM by btabone.)
Post: #1
John Conway's Game of Life
One more implementation of John Conway's Game of Life on HP Prime. I like this particular problem as a tool for learning new platforms. This was a chance to get comfortable with matrix operations and references as well as play around with rendering on the screen and learn HP Prime programming in general. The source is in github here:

https://github.com/hybridmachine/hpprime...GameOfLife

I have attached the most recent version on this thread as well.

Right now (as of 10/26/2020) there are three pre-canned starting patterns and the app only renders the first 50 generations but it is a start. When launched:

1) First the user is prompted for a grid size (m x m). 50 is a reasonable place to start.

2) The user is prompted to pick a starting pattern

Once done, the rendering progresses until generation 50.

I do plan to add:
1) initial pattern loading from a user defined matrix
2) generation count display. -> Added 11/6/2020
3) auto vs stepped rendering (where the user can choose to pause and single step).

   

   


Attached File(s)
.hpprgm  GameOfLife.hpprgm (Size: 7.52 KB / Downloads: 13)
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)