Skip to content

Instantly share code, notes, and snippets.

@JackHowa
Created April 25, 2017 15:05
Show Gist options
  • Save JackHowa/92ee6fff0b8e773c42968d0f15a8bc22 to your computer and use it in GitHub Desktop.
Save JackHowa/92ee6fff0b8e773c42968d0f15a8bc22 to your computer and use it in GitHub Desktop.
ruby racer notes
change instance vars of positions to self.position
because that's the position for the current player
delete player instance variable then just pass players into the starting_position (formerly overwriting with position method)
make attr reader for position
use insert and to_s to the value
have a hash value be knowing the position and player name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment