{"action":"closed","number":35,"pull_request":{"url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35","id":230282664,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMjgyNjY0","html_url":"https://github.com/bryan-lee-git/group-project-2/pull/35","diff_url":"https://github.com/bryan-lee-git/group-project-2/pull/35.diff","patch_url":"https://github.com/bryan-lee-git/group-project-2/pull/35.patch","issue_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/35","number":35,"state":"closed","locked":false,"title":"psuedo-code for the game loop.","user":{"login":"jamesschlader","id":38479621,"node_id":"MDQ6VXNlcjM4NDc5NjIx","avatar_url":"https://avatars0.githubusercontent.com/u/38479621?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesschlader","html_url":"https://github.com/jamesschlader","followers_url":"https://api.github.com/users/jamesschlader/followers","following_url":"https://api.github.com/users/jamesschlader/following{/other_user}","gists_url":"https://api.github.com/users/jamesschlader/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesschlader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesschlader/subscriptions","organizations_url":"https://api.github.com/users/jamesschlader/orgs","repos_url":"https://api.github.com/users/jamesschlader/repos","events_url":"https://api.github.com/users/jamesschlader/events{/privacy}","received_events_url":"https://api.github.com/users/jamesschlader/received_events","type":"User","site_admin":false},"body":"I think I have all the logic ready to implement combat in these files. I separated out the different phases in order so that we can merely call one function (Combat) inside the Combat html page route. That will keep the routes looking clean. Also, it will help us troubleshoot when we find problems.\r\n\r\nI used as much E6 as possible. There's still quite of work to be done in terms of building the player constructor function, calling the constructor in the right place, passing the right objects, and filling out the actual code. I think I have the import/export syntax right. That might need to be changed as well.\r\n\r\nHopefully, everyone can read through the files and follow the logic. Please speak up if something is genuinely mysterious. My theory is that we can team code this out when we're in class on Tuesday. Everyone can get their hands dirty with some E6 code (wtf does \"currentStamina > maxStamina ? maxStamina : currentStamina\" even mean??, you may wonder), we'll be able to tie it into the appropriate views or else know which other views we need to make, and hopefully we can get the damn thing to work in front of all of our eyes.  ","created_at":"2018-11-12T22:04:04Z","updated_at":"2018-11-12T22:42:21Z","closed_at":"2018-11-12T22:42:21Z","merged_at":"2018-11-12T22:42:21Z","merge_commit_sha":"31024981e0d5443df4ca0092afc700de4a95f6f0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35/commits","review_comments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35/comments","review_comment_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/35/comments","statuses_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/statuses/86070e6f3450e39b1c63540ac38d673d243e706d","head":{"label":"bryan-lee-git:jim_branch","ref":"jim_branch","sha":"86070e6f3450e39b1c63540ac38d673d243e706d","user":{"login":"bryan-lee-git","id":36904794,"node_id":"MDQ6VXNlcjM2OTA0Nzk0","avatar_url":"https://avatars1.githubusercontent.com/u/36904794?v=4","gravatar_id":"","url":"https://api.github.com/users/bryan-lee-git","html_url":"https://github.com/bryan-lee-git","followers_url":"https://api.github.com/users/bryan-lee-git/followers","following_url":"https://api.github.com/users/bryan-lee-git/following{/other_user}","gists_url":"https://api.github.com/users/bryan-lee-git/gists{/gist_id}","starred_url":"https://api.github.com/users/bryan-lee-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryan-lee-git/subscriptions","organizations_url":"https://api.github.com/users/bryan-lee-git/orgs","repos_url":"https://api.github.com/users/bryan-lee-git/repos","events_url":"https://api.github.com/users/bryan-lee-git/events{/privacy}","received_events_url":"https://api.github.com/users/bryan-lee-git/received_events","type":"User","site_admin":false},"repo":{"id":156794805,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3OTQ4MDU=","name":"group-project-2","full_name":"bryan-lee-git/group-project-2","private":false,"owner":{"login":"bryan-lee-git","id":36904794,"node_id":"MDQ6VXNlcjM2OTA0Nzk0","avatar_url":"https://avatars1.githubusercontent.com/u/36904794?v=4","gravatar_id":"","url":"https://api.github.com/users/bryan-lee-git","html_url":"https://github.com/bryan-lee-git","followers_url":"https://api.github.com/users/bryan-lee-git/followers","following_url":"https://api.github.com/users/bryan-lee-git/following{/other_user}","gists_url":"https://api.github.com/users/bryan-lee-git/gists{/gist_id}","starred_url":"https://api.github.com/users/bryan-lee-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryan-lee-git/subscriptions","organizations_url":"https://api.github.com/users/bryan-lee-git/orgs","repos_url":"https://api.github.com/users/bryan-lee-git/repos","events_url":"https://api.github.com/users/bryan-lee-git/events{/privacy}","received_events_url":"https://api.github.com/users/bryan-lee-git/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bryan-lee-git/group-project-2","description":"Group Project 2 for the University of Utah Full Stack Coding Bootcamp. Group Members: Bryan Lee, Eric Bishop, Bronson Bird, and Jim Schlader. Project Description: Our new project is an RPG called Road to Rome. You play a gladiator who must fight his way from the \"minor leagues\" up to the ultimate glory in Rome. Gladiators must choose their weapons and armor wisely to match their own abilities the fighting style of their opponent. They will be able to scout their opponent before they face off, including seeing their opponent's win/loss record, previous weapon/armor configurations, and an estimate of the opponent's abilities. Winners of matches get a victory purse with which to upgrade gear and invest in training. Advancement to better Arenas brings contact with better opponents and bigger purses. Combat in the arena requires balancing tactics to take advantage of an opponent's weakness while minimizing your own. Prepare wisely and fight bravely, for the reward for victory is great fame and wealth but the price of failure is your life!","fork":false,"url":"https://api.github.com/repos/bryan-lee-git/group-project-2","forks_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/forks","keys_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/teams","hooks_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/hooks","issue_events_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/events{/number}","events_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/events","assignees_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/assignees{/user}","branches_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/branches{/branch}","tags_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/tags","blobs_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/statuses/{sha}","languages_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/languages","stargazers_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/stargazers","contributors_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/contributors","subscribers_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/subscribers","subscription_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/subscription","commits_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/contents/{+path}","compare_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/merges","archive_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/downloads","issues_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues{/number}","pulls_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls{/number}","milestones_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/milestones{/number}","notifications_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/labels{/name}","releases_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/releases{/id}","deployments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/deployments","created_at":"2018-11-09T01:53:29Z","updated_at":"2018-11-11T23:25:01Z","pushed_at":"2018-11-12T22:42:21Z","git_url":"git://github.com/bryan-lee-git/group-project-2.git","ssh_url":"git@github.com:bryan-lee-git/group-project-2.git","clone_url":"https://github.com/bryan-lee-git/group-project-2.git","svn_url":"https://github.com/bryan-lee-git/group-project-2","homepage":"","size":2790,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"bryan-lee-git:master","ref":"master","sha":"3f8b164cbd22a58777fa7cdf71ecc400e054dc8c","user":{"login":"bryan-lee-git","id":36904794,"node_id":"MDQ6VXNlcjM2OTA0Nzk0","avatar_url":"https://avatars1.githubusercontent.com/u/36904794?v=4","gravatar_id":"","url":"https://api.github.com/users/bryan-lee-git","html_url":"https://github.com/bryan-lee-git","followers_url":"https://api.github.com/users/bryan-lee-git/followers","following_url":"https://api.github.com/users/bryan-lee-git/following{/other_user}","gists_url":"https://api.github.com/users/bryan-lee-git/gists{/gist_id}","starred_url":"https://api.github.com/users/bryan-lee-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryan-lee-git/subscriptions","organizations_url":"https://api.github.com/users/bryan-lee-git/orgs","repos_url":"https://api.github.com/users/bryan-lee-git/repos","events_url":"https://api.github.com/users/bryan-lee-git/events{/privacy}","received_events_url":"https://api.github.com/users/bryan-lee-git/received_events","type":"User","site_admin":false},"repo":{"id":156794805,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3OTQ4MDU=","name":"group-project-2","full_name":"bryan-lee-git/group-project-2","private":false,"owner":{"login":"bryan-lee-git","id":36904794,"node_id":"MDQ6VXNlcjM2OTA0Nzk0","avatar_url":"https://avatars1.githubusercontent.com/u/36904794?v=4","gravatar_id":"","url":"https://api.github.com/users/bryan-lee-git","html_url":"https://github.com/bryan-lee-git","followers_url":"https://api.github.com/users/bryan-lee-git/followers","following_url":"https://api.github.com/users/bryan-lee-git/following{/other_user}","gists_url":"https://api.github.com/users/bryan-lee-git/gists{/gist_id}","starred_url":"https://api.github.com/users/bryan-lee-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryan-lee-git/subscriptions","organizations_url":"https://api.github.com/users/bryan-lee-git/orgs","repos_url":"https://api.github.com/users/bryan-lee-git/repos","events_url":"https://api.github.com/users/bryan-lee-git/events{/privacy}","received_events_url":"https://api.github.com/users/bryan-lee-git/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bryan-lee-git/group-project-2","description":"Group Project 2 for the University of Utah Full Stack Coding Bootcamp. Group Members: Bryan Lee, Eric Bishop, Bronson Bird, and Jim Schlader. Project Description: Our new project is an RPG called Road to Rome. You play a gladiator who must fight his way from the \"minor leagues\" up to the ultimate glory in Rome. Gladiators must choose their weapons and armor wisely to match their own abilities the fighting style of their opponent. They will be able to scout their opponent before they face off, including seeing their opponent's win/loss record, previous weapon/armor configurations, and an estimate of the opponent's abilities. Winners of matches get a victory purse with which to upgrade gear and invest in training. Advancement to better Arenas brings contact with better opponents and bigger purses. Combat in the arena requires balancing tactics to take advantage of an opponent's weakness while minimizing your own. Prepare wisely and fight bravely, for the reward for victory is great fame and wealth but the price of failure is your life!","fork":false,"url":"https://api.github.com/repos/bryan-lee-git/group-project-2","forks_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/forks","keys_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/teams","hooks_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/hooks","issue_events_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/events{/number}","events_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/events","assignees_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/assignees{/user}","branches_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/branches{/branch}","tags_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/tags","blobs_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/statuses/{sha}","languages_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/languages","stargazers_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/stargazers","contributors_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/contributors","subscribers_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/subscribers","subscription_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/subscription","commits_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/contents/{+path}","compare_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/merges","archive_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/downloads","issues_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues{/number}","pulls_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls{/number}","milestones_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/milestones{/number}","notifications_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/labels{/name}","releases_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/releases{/id}","deployments_url":"https://api.github.com/repos/bryan-lee-git/group-project-2/deployments","created_at":"2018-11-09T01:53:29Z","updated_at":"2018-11-11T23:25:01Z","pushed_at":"2018-11-12T22:42:21Z","git_url":"git://github.com/bryan-lee-git/group-project-2.git","ssh_url":"git@github.com:bryan-lee-git/group-project-2.git","clone_url":"https://github.com/bryan-lee-git/group-project-2.git","svn_url":"https://github.com/bryan-lee-git/group-project-2","homepage":"","size":2790,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35"},"html":{"href":"https://github.com/bryan-lee-git/group-project-2/pull/35"},"issue":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/35"},"comments":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/bryan-lee-git/group-project-2/statuses/86070e6f3450e39b1c63540ac38d673d243e706d"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"bishopcanno","id":38363351,"node_id":"MDQ6VXNlcjM4MzYzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/38363351?v=4","gravatar_id":"","url":"https://api.github.com/users/bishopcanno","html_url":"https://github.com/bishopcanno","followers_url":"https://api.github.com/users/bishopcanno/followers","following_url":"https://api.github.com/users/bishopcanno/following{/other_user}","gists_url":"https://api.github.com/users/bishopcanno/gists{/gist_id}","starred_url":"https://api.github.com/users/bishopcanno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bishopcanno/subscriptions","organizations_url":"https://api.github.com/users/bishopcanno/orgs","repos_url":"https://api.github.com/users/bishopcanno/repos","events_url":"https://api.github.com/users/bishopcanno/events{/privacy}","received_events_url":"https://api.github.com/users/bishopcanno/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":373,"deletions":12,"changed_files":8}}
{"actor":{"display_login":"bishopcanno"}}