{"action":"opened","issue":{"url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/63","labels_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/63/comments","events_url":"https://api.github.com/repos/TIY-DC-ROR-2015-Jan/course-notes/issues/63/events","html_url":"https://github.com/TIY-DC-ROR-2015-Jan/course-notes/issues/63","id":55929506,"number":63,"title":"Gettin' piggy with it","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":"kdmcclin","id":7718549,"avatar_url":"https://avatars.githubusercontent.com/u/7718549?v=3","gravatar_id":"","url":"https://api.github.com/users/kdmcclin","html_url":"https://github.com/kdmcclin","followers_url":"https://api.github.com/users/kdmcclin/followers","following_url":"https://api.github.com/users/kdmcclin/following{/other_user}","gists_url":"https://api.github.com/users/kdmcclin/gists{/gist_id}","starred_url":"https://api.github.com/users/kdmcclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdmcclin/subscriptions","organizations_url":"https://api.github.com/users/kdmcclin/orgs","repos_url":"https://api.github.com/users/kdmcclin/repos","events_url":"https://api.github.com/users/kdmcclin/events{/privacy}","received_events_url":"https://api.github.com/users/kdmcclin/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-01-29T17:24:06Z","updated_at":"2015-01-29T17:24:06Z","closed_at":null,"body":"_Due on Feb 02 @ 09:00am_\n## Learning Objectives\n\n* Modeling a real-world game, and decomposing your process into small pieces (methods)\n* More practice with variable scope and passing, `Array`s and `each`\n\n## Details\n\n### Normal Mode\n\nTry to implement all of these without referring to the example from class:\n\n* Reimplement the game, but with the \"Hog\" variant: each turn, the game asks the player how many dice to roll. If any of them are 1, they get no points; otherwise they get the total.\n* Ask the players for their names, and print those out at each turn.\n* When the game is over, ask if the player(s) want to play again.\n* Present a better \"divider\" between turns - could be cool ASCII art, or a 2 second pause, or waiting for a player to press enter, or ...\n* Allow any number of players >2\n\nOnce that's done, refer to (/copy) the implementation from class and add:\n\n* Let the player decide which variant (Hog or Pig) they want to play.\n\n### Hard Mode\n\nAdd the following extra features\n\n* Let the player ask for a hint showing their _expected_ score if they roll again. (Question: is taking the hint always the best play?)\n* Build an AI to play against the player. Let the player pick 1- or 2- player mode before starting the game.\n* Add a two-dice variant - players roll two dice at at time, lose _all_ of their points on double-1s, and must roll again after any other doubles.\n"}}