Skip to content

Commit

Permalink
Add output and list in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
veelenga committed Oct 3, 2017
1 parent 5528f07 commit 7675d24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -15,6 +15,7 @@ The goal is to have a set of [GOF patterns](http://www.blackwasp.co.uk/gofpatter
- [Observer](behavioral/observer.cr)
- [Strategy](behavioral/strategy.cr)
- [Template](behavioral/template.cr)
- [Visitor](behavioral/visitor.cr)
- Creational
- [Abstract Factory](creational/abstract_factory.cr)
- [Builder](creational/builder.cr)
Expand Down
11 changes: 11 additions & 0 deletions behavioral/visitor.cr
Expand Up @@ -93,3 +93,14 @@ game_elements.each { |elem| elem.accept(setup_visitor) }
3.times do
game_elements.each { |elem| elem.accept(update_visitor) }
end

# [Setup] Visiting Arena
# Preparing arena...
# [Setup] Visiting Fighter
# Fighter is ready!
# [Update] Visiting Arena
# [Update] Visiting Fighter
# [Update] Visiting Arena
# [Update] Visiting Fighter
# [Update] Visiting Arena
# [Update] Visiting Fighter

0 comments on commit 7675d24

Please sign in to comment.