{"action":"created","comment":{"url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/comments/219682016","pull_request_review_id":157922091,"id":219682016,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTY4MjAxNg==","diff_hunk":"@@ -8,79 +8,396 @@ class Program\n     {\n         static void Main(string[] args)\n         {\n-            Console.WriteLine(\"Hello World!\");\n+            Game game = new Game();\n+            do\n+            {\n+                try\n+                {\n+                    game.inputCoords();\n+                    game.movePiece();\n+                }\n+                catch (Exception)\n+                {\n+                    Console.WriteLine(\"Invalid move or position, please try again\");\n+                }\n+            } while (!game.CheckForWin());\n         }\n     }\n \n     public class Checker\n     {\n-        public string Symbol  { get; set; }\n-        public int[] Position  { get; set; }\n-        public string Color { get; set; }\n-        \n-        public Checker(string color, int[] position)\n+        public string Symbol { get; private set; }\n+        public int[] Position { get; set; }\n+        // If color is White then its true else if color is Black then its false\n+        public bool Color { get; private set; }\n+        public bool kinged { get; private set; }\n+        // checker constructore that sets the initial variables\n+        public Checker(bool color, int[] Position)\n         {\n             // Your code here\n+            this.Color = color;\n+            this.Position = Position;\n+            this.kinged = false;\n+            // sets the symbol to o or x based on color bool\n+            if (this.Color == true)\n+            {\n+                this.Symbol = \"o\";\n+            }\n+            else\n+            {\n+                this.Symbol = \"x\";\n+            }\n+        }\n+        // member method that is called when a piece\n+        // meets the conditions to be kinged\n+        public void kingChecker()\n+        {\n+            this.Symbol = this.Symbol.ToUpper();\n+            this.kinged = true;\n         }\n     }\n-\n     public class Board\n     {\n-        public string[][] Grid  { get; set; }\n+        public string[,] Grid { get; set; }\n         public List<Checker> Checkers { get; set; }\n-        \n+        // Board constructor creates a new List of Checkers,\n+        // a new two diminsional string array, and sets each\n+        // position in the array to blank (two spaces for proper\n+        // terminal alignment of columns)\n         public Board()\n         {\n             // Your code here\n-            return;\n-        }\n-        \n-        public void CreateBoard()\n-        {\n-            // Your code here\n-            return;\n+            Checkers = new List<Checker>();\n+            Grid = new string[8, 8];\n+            for (int i = 0; i <= 7; i++)\n+            {\n+                for (int n = 0; n <= 7; n++)\n+                {\n+                    Grid[i, n] = \"  \";\n+                }\n+            }\n         }\n-        \n+        // Generates each sides checkers\n         public void GenerateCheckers()\n         {\n-            // Your code here\n-            return;\n+            // initial x & y values for the first for loop\n+            int x = 0;\n+            int y = 1;\n+            // loop to instantiate 12 player o checker pieces.\n+            for (int i = 0; i < 12; i++)\n+            {","path":"Checkers/Checkers.cs","position":100,"original_position":100,"commit_id":"042282c6cc2efdedc9b6f7c250c9e1194af72cd3","original_commit_id":"042282c6cc2efdedc9b6f7c250c9e1194af72cd3","user":{"login":"yousifS","id":3866414,"node_id":"MDQ6VXNlcjM4NjY0MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3866414?v=4","gravatar_id":"","url":"https://api.github.com/users/yousifS","html_url":"https://github.com/yousifS","followers_url":"https://api.github.com/users/yousifS/followers","following_url":"https://api.github.com/users/yousifS/following{/other_user}","gists_url":"https://api.github.com/users/yousifS/gists{/gist_id}","starred_url":"https://api.github.com/users/yousifS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yousifS/subscriptions","organizations_url":"https://api.github.com/users/yousifS/orgs","repos_url":"https://api.github.com/users/yousifS/repos","events_url":"https://api.github.com/users/yousifS/events{/privacy}","received_events_url":"https://api.github.com/users/yousifS/received_events","type":"User","site_admin":false},"body":"This does not seem very intuitive.","created_at":"2018-09-22T20:52:38Z","updated_at":"2018-09-22T20:52:38Z","html_url":"https://github.com/Reklund3/csharp-workbook/pull/19#discussion_r219682016","pull_request_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/comments/219682016"},"html":{"href":"https://github.com/Reklund3/csharp-workbook/pull/19#discussion_r219682016"},"pull_request":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19","id":212803275,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyODAzMjc1","html_url":"https://github.com/Reklund3/csharp-workbook/pull/19","diff_url":"https://github.com/Reklund3/csharp-workbook/pull/19.diff","patch_url":"https://github.com/Reklund3/csharp-workbook/pull/19.patch","issue_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/19","number":19,"state":"open","locked":false,"title":"upload mostly complete check point 2 checkers assignment","user":{"login":"Reklund3","id":22404870,"node_id":"MDQ6VXNlcjIyNDA0ODcw","avatar_url":"https://avatars1.githubusercontent.com/u/22404870?v=4","gravatar_id":"","url":"https://api.github.com/users/Reklund3","html_url":"https://github.com/Reklund3","followers_url":"https://api.github.com/users/Reklund3/followers","following_url":"https://api.github.com/users/Reklund3/following{/other_user}","gists_url":"https://api.github.com/users/Reklund3/gists{/gist_id}","starred_url":"https://api.github.com/users/Reklund3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reklund3/subscriptions","organizations_url":"https://api.github.com/users/Reklund3/orgs","repos_url":"https://api.github.com/users/Reklund3/repos","events_url":"https://api.github.com/users/Reklund3/events{/privacy}","received_events_url":"https://api.github.com/users/Reklund3/received_events","type":"User","site_admin":false},"body":"Checkers game","created_at":"2018-09-03T18:19:28Z","updated_at":"2018-09-22T20:52:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ee0409fb1cafd96d9eb2c5f32de1597ec599a4d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/19/comments","statuses_url":"https://api.github.com/repos/Reklund3/csharp-workbook/statuses/042282c6cc2efdedc9b6f7c250c9e1194af72cd3","head":{"label":"Reklund3:checkpoint2","ref":"checkpoint2","sha":"042282c6cc2efdedc9b6f7c250c9e1194af72cd3","user":{"login":"Reklund3","id":22404870,"node_id":"MDQ6VXNlcjIyNDA0ODcw","avatar_url":"https://avatars1.githubusercontent.com/u/22404870?v=4","gravatar_id":"","url":"https://api.github.com/users/Reklund3","html_url":"https://github.com/Reklund3","followers_url":"https://api.github.com/users/Reklund3/followers","following_url":"https://api.github.com/users/Reklund3/following{/other_user}","gists_url":"https://api.github.com/users/Reklund3/gists{/gist_id}","starred_url":"https://api.github.com/users/Reklund3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reklund3/subscriptions","organizations_url":"https://api.github.com/users/Reklund3/orgs","repos_url":"https://api.github.com/users/Reklund3/repos","events_url":"https://api.github.com/users/Reklund3/events{/privacy}","received_events_url":"https://api.github.com/users/Reklund3/received_events","type":"User","site_admin":false},"repo":{"id":140353579,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAzNTM1Nzk=","name":"csharp-workbook","full_name":"Reklund3/csharp-workbook","private":false,"owner":{"login":"Reklund3","id":22404870,"node_id":"MDQ6VXNlcjIyNDA0ODcw","avatar_url":"https://avatars1.githubusercontent.com/u/22404870?v=4","gravatar_id":"","url":"https://api.github.com/users/Reklund3","html_url":"https://github.com/Reklund3","followers_url":"https://api.github.com/users/Reklund3/followers","following_url":"https://api.github.com/users/Reklund3/following{/other_user}","gists_url":"https://api.github.com/users/Reklund3/gists{/gist_id}","starred_url":"https://api.github.com/users/Reklund3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reklund3/subscriptions","organizations_url":"https://api.github.com/users/Reklund3/orgs","repos_url":"https://api.github.com/users/Reklund3/repos","events_url":"https://api.github.com/users/Reklund3/events{/privacy}","received_events_url":"https://api.github.com/users/Reklund3/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Reklund3/csharp-workbook","description":null,"fork":true,"url":"https://api.github.com/repos/Reklund3/csharp-workbook","forks_url":"https://api.github.com/repos/Reklund3/csharp-workbook/forks","keys_url":"https://api.github.com/repos/Reklund3/csharp-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Reklund3/csharp-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Reklund3/csharp-workbook/teams","hooks_url":"https://api.github.com/repos/Reklund3/csharp-workbook/hooks","issue_events_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/Reklund3/csharp-workbook/events","assignees_url":"https://api.github.com/repos/Reklund3/csharp-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/Reklund3/csharp-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/Reklund3/csharp-workbook/tags","blobs_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Reklund3/csharp-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Reklund3/csharp-workbook/languages","stargazers_url":"https://api.github.com/repos/Reklund3/csharp-workbook/stargazers","contributors_url":"https://api.github.com/repos/Reklund3/csharp-workbook/contributors","subscribers_url":"https://api.github.com/repos/Reklund3/csharp-workbook/subscribers","subscription_url":"https://api.github.com/repos/Reklund3/csharp-workbook/subscription","commits_url":"https://api.github.com/repos/Reklund3/csharp-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Reklund3/csharp-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/Reklund3/csharp-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Reklund3/csharp-workbook/merges","archive_url":"https://api.github.com/repos/Reklund3/csharp-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Reklund3/csharp-workbook/downloads","issues_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Reklund3/csharp-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Reklund3/csharp-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Reklund3/csharp-workbook/labels{/name}","releases_url":"https://api.github.com/repos/Reklund3/csharp-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/deployments","created_at":"2018-07-09T23:44:42Z","updated_at":"2018-08-26T19:42:59Z","pushed_at":"2018-09-19T23:35:43Z","git_url":"git://github.com/Reklund3/csharp-workbook.git","ssh_url":"git@github.com:Reklund3/csharp-workbook.git","clone_url":"https://github.com/Reklund3/csharp-workbook.git","svn_url":"https://github.com/Reklund3/csharp-workbook","homepage":null,"size":636,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"Reklund3:master","ref":"master","sha":"c7430f03034c9a14ff1263a7f4e248cdc1e0c5fb","user":{"login":"Reklund3","id":22404870,"node_id":"MDQ6VXNlcjIyNDA0ODcw","avatar_url":"https://avatars1.githubusercontent.com/u/22404870?v=4","gravatar_id":"","url":"https://api.github.com/users/Reklund3","html_url":"https://github.com/Reklund3","followers_url":"https://api.github.com/users/Reklund3/followers","following_url":"https://api.github.com/users/Reklund3/following{/other_user}","gists_url":"https://api.github.com/users/Reklund3/gists{/gist_id}","starred_url":"https://api.github.com/users/Reklund3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reklund3/subscriptions","organizations_url":"https://api.github.com/users/Reklund3/orgs","repos_url":"https://api.github.com/users/Reklund3/repos","events_url":"https://api.github.com/users/Reklund3/events{/privacy}","received_events_url":"https://api.github.com/users/Reklund3/received_events","type":"User","site_admin":false},"repo":{"id":140353579,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAzNTM1Nzk=","name":"csharp-workbook","full_name":"Reklund3/csharp-workbook","private":false,"owner":{"login":"Reklund3","id":22404870,"node_id":"MDQ6VXNlcjIyNDA0ODcw","avatar_url":"https://avatars1.githubusercontent.com/u/22404870?v=4","gravatar_id":"","url":"https://api.github.com/users/Reklund3","html_url":"https://github.com/Reklund3","followers_url":"https://api.github.com/users/Reklund3/followers","following_url":"https://api.github.com/users/Reklund3/following{/other_user}","gists_url":"https://api.github.com/users/Reklund3/gists{/gist_id}","starred_url":"https://api.github.com/users/Reklund3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reklund3/subscriptions","organizations_url":"https://api.github.com/users/Reklund3/orgs","repos_url":"https://api.github.com/users/Reklund3/repos","events_url":"https://api.github.com/users/Reklund3/events{/privacy}","received_events_url":"https://api.github.com/users/Reklund3/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Reklund3/csharp-workbook","description":null,"fork":true,"url":"https://api.github.com/repos/Reklund3/csharp-workbook","forks_url":"https://api.github.com/repos/Reklund3/csharp-workbook/forks","keys_url":"https://api.github.com/repos/Reklund3/csharp-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Reklund3/csharp-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Reklund3/csharp-workbook/teams","hooks_url":"https://api.github.com/repos/Reklund3/csharp-workbook/hooks","issue_events_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/Reklund3/csharp-workbook/events","assignees_url":"https://api.github.com/repos/Reklund3/csharp-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/Reklund3/csharp-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/Reklund3/csharp-workbook/tags","blobs_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Reklund3/csharp-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Reklund3/csharp-workbook/languages","stargazers_url":"https://api.github.com/repos/Reklund3/csharp-workbook/stargazers","contributors_url":"https://api.github.com/repos/Reklund3/csharp-workbook/contributors","subscribers_url":"https://api.github.com/repos/Reklund3/csharp-workbook/subscribers","subscription_url":"https://api.github.com/repos/Reklund3/csharp-workbook/subscription","commits_url":"https://api.github.com/repos/Reklund3/csharp-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Reklund3/csharp-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Reklund3/csharp-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/Reklund3/csharp-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Reklund3/csharp-workbook/merges","archive_url":"https://api.github.com/repos/Reklund3/csharp-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Reklund3/csharp-workbook/downloads","issues_url":"https://api.github.com/repos/Reklund3/csharp-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Reklund3/csharp-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Reklund3/csharp-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Reklund3/csharp-workbook/labels{/name}","releases_url":"https://api.github.com/repos/Reklund3/csharp-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/Reklund3/csharp-workbook/deployments","created_at":"2018-07-09T23:44:42Z","updated_at":"2018-08-26T19:42:59Z","pushed_at":"2018-09-19T23:35:43Z","git_url":"git://github.com/Reklund3/csharp-workbook.git","ssh_url":"git@github.com:Reklund3/csharp-workbook.git","clone_url":"https://github.com/Reklund3/csharp-workbook.git","svn_url":"https://github.com/Reklund3/csharp-workbook","homepage":null,"size":636,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19"},"html":{"href":"https://github.com/Reklund3/csharp-workbook/pull/19"},"issue":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/19"},"comments":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Reklund3/csharp-workbook/statuses/042282c6cc2efdedc9b6f7c250c9e1194af72cd3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yousifS"}}