Skip to content

Generate#1

Open
davidjameshumphreys wants to merge 2 commits intodalethatcher:masterfrom
davidjameshumphreys:generate
Open

Generate#1
davidjameshumphreys wants to merge 2 commits intodalethatcher:masterfrom
davidjameshumphreys:generate

Conversation

@davidjameshumphreys
Copy link

I re-did the code in a lispy way. Group 4's datastructure is a lot cleaner so I copied that way.

So for one line of output you could call (print-game-line [:rock 0 :rock 2 :up 5]) which produces the string
"#.#..>" (dots added to make it legible).

It would require a few more improvements:

  • generate-map: to iterate over the full x/y space
  • maybe some sort of high-level mapping to translate (make-map :rect 5 7) into the full list of lower calls.

I'll post it to the list when I get added.

@dalethatcher
Copy link
Owner

Thanks for this, I'm not sure what the plan would be for consolidating changes up to the mainline. Maybe we could discuss at this months dojo?

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