Giter Club home page Giter Club logo

Comments (3)

hugovk avatar hugovk commented on August 16, 2024 1

Sounds promising!

NaNoGenMo/2017#123 used cellular automata, but not Game of Life:

Yes, it’s based on the elementary (1D) automata studied extensively by Wolfram and others.

Game of Life is generally represented in 2D grid space with edge cells in either 4 or 8 directions. I haven’t figured out how to translate this 2D space to a text representation (yet!), but the 1D automata structure has a fairly intuitive mapping to the linear ordering of words in prose/book conventions.

from 2019.

aTylerRobertson avatar aTylerRobertson commented on August 16, 2024 1

I've worked up a "working" interactive version of this idea here:

https://codepen.io/compysando/pen/bGGaEjq

Here's a fun excerpt using a section of "The Strange Case of Dr. Jekyll and Mr. Hyde" as input:

The figure these the all any time he dozed over it but it glide more stealthily through sleeping houses or move more swiftly and the swiftly lamplighted city a child and And the face which he might know even in his it face or that him and melted before his and thus it was apace in the lawyer’s mind strong an curiosity to behold the features on him thought the mystery would perhaps away was the of when He a reason for friend’s preference or (call it you and the will it a face the face of man was bowels mercy: had but to itself raise up in the the a spirit of hatred that Mr Utterson began haunt the door the shops In the office hours at when business was and at night fogged city moon all lights all hours solitude concourse lawyer on “If he be Mr Hyde” he “I shall be Mr Seek” And his was fine night; frost the the streets a the unshaken by any wind a pattern of and shadow o’clock when shops the very in of low of from all round silent Small carried far; domestic sounds houses were clearly on the roadway; approach any him a long time some minutes at his post when he was aware of light footstep

A few issues I've noticed up front:

  1. Longer input texts inherently generate longer sentences with the current rules
  2. Not all runs will generate a 50,000-word output (if the game dies out, etc.)
  3. Punctuation, sentence structure isn't handled dynamically yet

I'll be making another pass at this tomorrow to clean up/document the code so far, then this weekend I'll look into adding a canvas element to display the game as it plays out.

from 2019.

greg-kennedy avatar greg-kennedy commented on August 16, 2024

The tags on this are confusing me :) I see the Interactive version and ran it, but do you want to attach a 50,000 word Sample output and claim your "completed" label?

from 2019.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.