{"action":"created","issue":{"url":"https://api.github.com/repos/msmith46234/assignments/issues/3","labels_url":"https://api.github.com/repos/msmith46234/assignments/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/msmith46234/assignments/issues/3/comments","events_url":"https://api.github.com/repos/msmith46234/assignments/issues/3/events","html_url":"https://github.com/msmith46234/assignments/issues/3","id":103321829,"number":3,"title":"Assignment 1-3 - Number Guessing Game","user":{"login":"gstark","id":2607,"avatar_url":"https://avatars.githubusercontent.com/u/2607?v=3","gravatar_id":"","url":"https://api.github.com/users/gstark","html_url":"https://github.com/gstark","followers_url":"https://api.github.com/users/gstark/followers","following_url":"https://api.github.com/users/gstark/following{/other_user}","gists_url":"https://api.github.com/users/gstark/gists{/gist_id}","starred_url":"https://api.github.com/users/gstark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstark/subscriptions","organizations_url":"https://api.github.com/users/gstark/orgs","repos_url":"https://api.github.com/users/gstark/repos","events_url":"https://api.github.com/users/gstark/events{/privacy}","received_events_url":"https://api.github.com/users/gstark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"msmith46234","id":8990385,"avatar_url":"https://avatars.githubusercontent.com/u/8990385?v=3","gravatar_id":"","url":"https://api.github.com/users/msmith46234","html_url":"https://github.com/msmith46234","followers_url":"https://api.github.com/users/msmith46234/followers","following_url":"https://api.github.com/users/msmith46234/following{/other_user}","gists_url":"https://api.github.com/users/msmith46234/gists{/gist_id}","starred_url":"https://api.github.com/users/msmith46234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmith46234/subscriptions","organizations_url":"https://api.github.com/users/msmith46234/orgs","repos_url":"https://api.github.com/users/msmith46234/repos","events_url":"https://api.github.com/users/msmith46234/events{/privacy}","received_events_url":"https://api.github.com/users/msmith46234/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-26T17:08:30Z","updated_at":"2015-08-28T18:35:42Z","closed_at":null,"body":"## Description\n\n\nIt is your first day at the latest Internet startup in the Valley, \"nmbr.\"\n\n![nmbr](http://i.imgur.com/Ngc1Olv.png)\n\nnmbr's mission statement is:\n> Bring radical transformation to the number guessing space.\n\nIn fact, the CTO just said on CNN that you are the _Uber of number guesses_. So now it is crunch mode, as nmbr's new guessing game will ship **tomorrow**!\n\nYour task is to create a number guessing game in which the computer picks a number and users have to guess it. The computer will give you cues like 'Too High' or 'Too Low.'\n\n## Deliverables\n\n- [ ] A GitHub repository named `nmbr`\n- [ ] A Ruby file in that repository called `guessing_game.rb`.\n- [ ] A series of commits on that repository.\n- [ ] When you close the assignment issue include a link to your new repository.\n\n  > After you get each requirement working, run `git add .`, then `git commit -m \"TEXT HERE\"`, where TEXT HERE should be replaced with the description of the requirement you just finished.\n\n  > Make sure to `git push` your changes up to GitHub.  Feel free to do this more than once along the way, of course.\n\n\n## Normal Mode\n\nYour program should:\n- [ ] Pick a **random** number between 1 and 100\n- [ ] Prompt you for a guess\n- [ ] If your guess is less than the program's number, it should tell you that you were low and let you guess again.\n- [ ] If the guess is greater than the program's number, it should tell you that you were high and let you guess again.\n- [ ] If your guess is correct, the program should tell you that you win and then quit.\n- [ ] After 5 incorrect guesses, the program should tell you that you lose.\n- [ ] Your code should use at least two methods.\n- [ ] This game should be run from the command line by typing \"ruby guessing_game.rb\".\n\n## Adventure Mode\n\nTo secure the next round of funding, nmbr's CEO is asking for this feature:\n- [ ] If you guess the same number twice, the program should ask you if you're feeling all right (or something similarly sarcastic).\n\n## Hard Mode\n\nYou've just found out that the mobile version of nmbr is being groomed for a spot on the App Store home page. nmbr's product manager needs to add these features before the app can be approved:\n- [ ] Implement everything in a `class` named `Game` -- The only code in your ruby class not inside the class will be: Game.new.play\n- [ ] Try having the random number to be guessed assigned in the `initializer`\n- [ ] The program should also comment on your behavior if you make a guess that doesn't help you. For example, you might say \"50\" and then be told \"that's too low.\" If you then guess \"25,\" you're just wasting a guess.\n\n## Nightmare Mode\n\nYou've done it! Funded, home page of the App Store, everthing is awesome. The CEO asks for a meeting to let you know that Gooooooooooogle is considering buying nmbr. You will be handsomely rewarded if you can only finish these features:\n- [ ] Ask the user if they want to guess as in previous modes, *OR* if they want the computer to guess _their_ number\n- [ ] Rename your existing class to `HumanGame` and create a new class called `ComputerGame` for the computer to guess\n- [ ] Depending on the user's input above, use one class or the other to _play_\n- [ ] If the user is guessing, all the Normal + Hard mode logic applies\n- [ ] If the computer is guessing\n - [ ] The computer will make a guess\n - [ ] The user answers if the computer's guess is too high, too low, or correct after each guess.\n - [ ] The computer gets five guesses. The computer should tell you if you are lying to it.  (e.g. Computer guesses 50, you say \"High.\"  Computer then guesses 49 and you say \"Low.\"  You'd be lying, as there are no numbers between them.)\n\n## Mathematical Mode\n\nnbmr's CFO wants to know how _extensible_ the app really is so you'll need to do the following:\n- [ ] Add a comment to this issue saying how many guesses the computer needs to guess a number up to one billion.\n- [ ] Justify, in your own words, your answer\n\n## Additional Resources\n\nIf you do Nightmare Mode, you might want to:\n* [Watch this video](https://www.youtube.com/watch?v=JQhciTuD3E8) about binary search\n* [Read this article](http://en.wikipedia.org/wiki/Binary_search_algorithm) about binary search\n"},"comment":{"url":"https://api.github.com/repos/msmith46234/assignments/issues/comments/135855832","html_url":"https://github.com/msmith46234/assignments/issues/3#issuecomment-135855832","issue_url":"https://api.github.com/repos/msmith46234/assignments/issues/3","id":135855832,"user":{"login":"msmith46234","id":8990385,"avatar_url":"https://avatars.githubusercontent.com/u/8990385?v=3","gravatar_id":"","url":"https://api.github.com/users/msmith46234","html_url":"https://github.com/msmith46234","followers_url":"https://api.github.com/users/msmith46234/followers","following_url":"https://api.github.com/users/msmith46234/following{/other_user}","gists_url":"https://api.github.com/users/msmith46234/gists{/gist_id}","starred_url":"https://api.github.com/users/msmith46234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmith46234/subscriptions","organizations_url":"https://api.github.com/users/msmith46234/orgs","repos_url":"https://api.github.com/users/msmith46234/repos","events_url":"https://api.github.com/users/msmith46234/events{/privacy}","received_events_url":"https://api.github.com/users/msmith46234/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:35:41Z","updated_at":"2015-08-28T18:35:41Z","body":"https://github.com/msmith46234/nmbr.git"}}