Skip to content

Conversation

@wari
Copy link
Owner

@wari wari commented Feb 23, 2015

Chapter 3 is all about finding your way around mazes.

Wari Wahab and others added 8 commits February 15, 2015 01:32
One thing to note, in line 6 of the book, we check for north and east,
and chose either one to link. Somehow, it does not work on this code, I
have to use South and East. Will have to check why I can't follow the
code as is given in the book
* Re-reading the source code from the book got me to spot my own mistake
  that makes bidirectional links to not join at all
* The code now follows the book exactly
* Dynamic type languages like Ruby and Python tend to leave out details
  and make things seem like magic. I used to like that about Ruby and
  Python :P
* Now that I'm reading someone else's code, I have to do the
  interpretation myself, and I hope this is what the short listing on
  page 40 does.
* Based on this however, there may be more Ruby fu to translate in the
  later pages 8|
* We can now draw the grid with added distances
* "Inheritance" in go in not really inheritance in the sense like Ruby,
  we have to override `String()`, as once promoted to Grid's String()
  method, we are not able to get to DistanceGrid's `ContentsOf(cell)`
  method.
* Another thing to note, since there is only one `main()`, and the next
  few pages adds different scripts, which means I might have to split
  things up or provide command line options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants