{"action":"opened","issue":{"url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/135","labels_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/135/comments","events_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/135/events","html_url":"https://github.com/TIY-DC-ROR-2015-Jan/course-notes/issues/135","id":57207982,"number":135,"title":"Sticky Pig","user":{"login":"jamesdabbs","id":1079270,"avatar_url":"https://avatars.githubusercontent.com/u/1079270?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesdabbs","html_url":"https://github.com/jamesdabbs","followers_url":"https://api.github.com/users/jamesdabbs/followers","following_url":"https://api.github.com/users/jamesdabbs/following{/other_user}","gists_url":"https://api.github.com/users/jamesdabbs/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesdabbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesdabbs/subscriptions","organizations_url":"https://api.github.com/users/jamesdabbs/orgs","repos_url":"https://api.github.com/users/jamesdabbs/repos","events_url":"https://api.github.com/users/jamesdabbs/events{/privacy}","received_events_url":"https://api.github.com/users/jamesdabbs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/labels/homework","name":"homework","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"msmukherji","id":10703270,"avatar_url":"https://avatars.githubusercontent.com/u/10703270?v=3","gravatar_id":"","url":"https://api.github.com/users/msmukherji","html_url":"https://github.com/msmukherji","followers_url":"https://api.github.com/users/msmukherji/followers","following_url":"https://api.github.com/users/msmukherji/following{/other_user}","gists_url":"https://api.github.com/users/msmukherji/gists{/gist_id}","starred_url":"https://api.github.com/users/msmukherji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmukherji/subscriptions","organizations_url":"https://api.github.com/users/msmukherji/orgs","repos_url":"https://api.github.com/users/msmukherji/repos","events_url":"https://api.github.com/users/msmukherji/events{/privacy}","received_events_url":"https://api.github.com/users/msmukherji/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-02-10T17:35:08Z","updated_at":"2015-02-10T17:35:08Z","closed_at":null,"body":"_Due on Feb 11 @ 09:00am_\n## Objectives\n\n### Learning Objectives\n\nAfter completing this assignment, you should understand:\n\n* Using models to persist permanent state\n\n### Performance Objectives\n\nAfter completing this assignment, you be able to effectively use\n\n* `ActiveRecord` to interact with data stores\n* Using active record models along with other plain Ruby objects\n\n## Details\n\n### Deliverables\n\nA repo (based on [our class skeleton](https://github.com/TIY-DC-ROR-2015-Jan/model-skeleton)) containing:\n* `ruby play.rb` should play a game of pig\n* `ruby leaderboard.rb` should display the winningist players\n\n## Normal Mode\n\n* Add a model that tracks wins and losses for each player.\n* Add an option to just print the leader board instead of playing.\n\n## Hard Mode\n\n* Make games resumable (players can quit in the middle, and start from where they left off when running the script later).\n\n# References\n\n* [The in-class history example with Hangman](https://github.com/TIY-DC-ROR-2015-Jan/course-notes/tree/master/feb/10/persistent-hangman)\n* Feel free to use [my Pig implementation](https://github.com/TIY-DC-ROR-2015-Jan/course-notes/blob/master/feb/09/classy-pig/pig.rb) as a starting point (you do not need to implement Hog here).\n* Refer to the [ActiveRecord query interface docs](http://guides.rubyonrails.org/active_record_querying.html).\n* For context, you may want to read more about the [active record pattern](http://en.wikipedia.org/wiki/Active_record_pattern) (the `ActiveRecord` gem being a Ruby implementation of that general idea)."}}