{"action":"closed","issue":{"url":"https://api.github.com/repos/majoseph77/mancala_game_project1/issues/3","labels_url":"https://api.github.com/repos/majoseph77/mancala_game_project1/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/majoseph77/mancala_game_project1/issues/3/comments","events_url":"https://api.github.com/repos/majoseph77/mancala_game_project1/issues/3/events","html_url":"https://github.com/majoseph77/mancala_game_project1/issues/3","id":93899305,"number":3,"title":"Have created variables and psuedo coded function, need assistance implementing. No errors because i have not created code to get an error.","user":{"login":"majoseph77","id":12867368,"avatar_url":"https://avatars.githubusercontent.com/u/12867368?v=3","gravatar_id":"","url":"https://api.github.com/users/majoseph77","html_url":"https://github.com/majoseph77","followers_url":"https://api.github.com/users/majoseph77/followers","following_url":"https://api.github.com/users/majoseph77/following{/other_user}","gists_url":"https://api.github.com/users/majoseph77/gists{/gist_id}","starred_url":"https://api.github.com/users/majoseph77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majoseph77/subscriptions","organizations_url":"https://api.github.com/users/majoseph77/orgs","repos_url":"https://api.github.com/users/majoseph77/repos","events_url":"https://api.github.com/users/majoseph77/events{/privacy}","received_events_url":"https://api.github.com/users/majoseph77/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"syang019","id":3037893,"avatar_url":"https://avatars.githubusercontent.com/u/3037893?v=3","gravatar_id":"","url":"https://api.github.com/users/syang019","html_url":"https://github.com/syang019","followers_url":"https://api.github.com/users/syang019/followers","following_url":"https://api.github.com/users/syang019/following{/other_user}","gists_url":"https://api.github.com/users/syang019/gists{/gist_id}","starred_url":"https://api.github.com/users/syang019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syang019/subscriptions","organizations_url":"https://api.github.com/users/syang019/orgs","repos_url":"https://api.github.com/users/syang019/repos","events_url":"https://api.github.com/users/syang019/events{/privacy}","received_events_url":"https://api.github.com/users/syang019/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-08T21:56:32Z","updated_at":"2015-07-09T17:08:26Z","closed_at":"2015-07-09T17:08:26Z","body":"#User Story\r\n- As a user I want to be able to know how many stones are in each of my pits\r\nand how many stones are in my opponents pits so I can know which option would\r\nbe the best move.\r\n\r\n## step1 write in plain english:\r\n- I want to take the value of any pit and add that value to the following pits by 1 unit until the original amount is 0. Then take the amount of stones in the pit that was last added to by the first pit anc continue the same process of adding to sequential pits by 1 until the last stone is dropped in a pit with the value of 0. Then it will be the next players turn\r\n\r\n## step 2 write a fx signature:\r\n- name of fx : move\r\n- inputs: \"numstones\", \"empty\", \"player1Side\", \"player2Side\"\r\n- returns: new \"numstones\"\r\n- side effects: \"updateDisplay\"\r\n` function move = function (numstones, empty, player1Side, player2Side){\r\n};`\r\n\r\n\r\n## step3 implement function:\r\n`function move = function (numstones, empty, player1Side, player2Side){\r\nstep1: get value of pit that has been clicked: value = 4\r\nstep 2: value grabbed is 4 add 1 stone clockwise to the next 4 pits. \r\n// the next 4 pits have a starting value of 4, so the new value of the next 4 pits is 5\r\n//\r\nstep 3: Take the value of the last pit that the stone was added to and continue the process of adding one to the next 5 pits until the last stone is dropped in a pit with a value of 0.\r\nstep 4: display that it is the next players turn.\r\n};\r\n"}}