Different implementations to the drunken-cockroach problem as described in the book Smalltalk-80: The Language.
JavaScript Ruby CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coffee-script
ruby
README.markdown

README.markdown

The Drunken Cockroach Problem

The problem is to measure how long it takes a drunken cockroach to touch each tile of a floor of square tiles which is N tiles wide and M tiles long.

In addition, we want to know how many times our drunken cockroach has touched each tile.

From "Smalltalk-80: The Language".