Conway's Life simulator for NES

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Conway's Life simulator for NES
by on (#115722)
Image
Instead of trying to see how Video Life manages to be fast, I figured I would see how fast I could make a Life simulator by just using repetitive, fast code and using unofficial opcodes. It's pretty bare-bones so far and all you can do is move a cursor around to toggle cells and start/stop simulation, but I'm hoping to add onto it and have an option for a bigger grid because 32x32 isn't even big enough for the Gosper glider gun. SNES mouse support would also be cool, but I would require an emulator that both supports the mouse and doesn't choke on unofficial opcodes first.

Download (with source)
Re: Conway's Life simulator for NES
by on (#115740)
There isn't a built .nes file in the download.
Re: Conway's Life simulator for NES
by on (#115753)
infiniteneslives wrote:
There isn't a built .nes file in the download.

I accidentally deleted it when I removed other things that building it makes like the .o that weren't necessary for the .zip. I reuploaded a fixed version.
Re: Conway's Life simulator for NES
by on (#116754)
So this is like an updo of the 2600 version?
Re: Conway's Life simulator for NES
by on (#116763)
Not sure what you mean by updo, but:
NovaYoshi wrote:
Instead of trying to see how Video Life manages to be fast, I figured I would see how fast I could make a Life simulator

It appears to have been written from scratch because he didn't want to sit down and reverse engineer the neighbor counting in Video Life for Atari 2600.
Re: Conway's Life simulator for NES
by on (#130156)
I made a version that lets you choose between different built-in rules or choose your own, and has a grid that's 64x32 instead of 32x32. Otherwise it's pretty much the same:

Image

There's a known bug about having the cursor on the leftmost column because it doesn't bother to have a special case to fix that, but I don't think it should be a big issue.

Download (with source)