r2p2 / golife Goto Github PK
View Code? Open in Web Editor NEWcommandline game of life in go
commandline game of life in go
If the active cells are moving over the edges, the area could be auto resized.
Because of the linear field storage model it is a bit complicated to do so. Instead of just adding new arrays you have to reorganize every single cell. This could take longer and longer.
Hi,
Nice project. I was looking at it as an example of multi-core simulations in go.
It seems to me that line 195 in life.go should have cellIndex incremented by MAXWORKERINDEX rather than workerIndex. Otherwise I don't follow your code then.
Care to comment?
Best regards from Montreal,
P.
If a map or file is loaded, the application determines the size of the field from the size of the map. If the parameter width and height are passed with the map or file parameter, they are ignored.
It would be better if the map could take place in the center of the field, where the field size can be defined by the parameters. If the passed size is smaller then the map size, the size of the map is used instead.
Would be fun if gol rules could be passed as arguments in s/b style.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.