Skip to content

Instantly share code, notes, and snippets.

@xander-miller
Last active December 3, 2015 21:32
Show Gist options
  • Select an option

  • Save xander-miller/ea885f8bf5978a8d8ff6 to your computer and use it in GitHub Desktop.

Select an option

Save xander-miller/ea885f8bf5978a8d8ff6 to your computer and use it in GitHub Desktop.

Revisions

  1. xander-miller revised this gist Dec 3, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion reversi.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    def reversey str = ""
    def reversi str = ""
    out = ''
    1.upto str.length do |i|
    out << str.chars[-i]
  2. xander-miller created this gist Dec 3, 2015.
    7 changes: 7 additions & 0 deletions reversi.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    def reversey str = ""
    out = ''
    1.upto str.length do |i|
    out << str.chars[-i]
    end
    out
    end