{"action":"created","issue":{"url":"https://api.github.com/repos/stefanwille/railsgirls/issues/35","labels_url":"https://api.github.com/repos/stefanwille/railsgirls/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/stefanwille/railsgirls/issues/35/comments","events_url":"https://api.github.com/repos/stefanwille/railsgirls/issues/35/events","html_url":"https://github.com/stefanwille/railsgirls/issues/35","id":119286752,"number":35,"title":"New exercise: Tic Tac Toe","user":{"login":"stefanwille","id":331756,"avatar_url":"https://avatars.githubusercontent.com/u/331756?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanwille","html_url":"https://github.com/stefanwille","followers_url":"https://api.github.com/users/stefanwille/followers","following_url":"https://api.github.com/users/stefanwille/following{/other_user}","gists_url":"https://api.github.com/users/stefanwille/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanwille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanwille/subscriptions","organizations_url":"https://api.github.com/users/stefanwille/orgs","repos_url":"https://api.github.com/users/stefanwille/repos","events_url":"https://api.github.com/users/stefanwille/events{/privacy}","received_events_url":"https://api.github.com/users/stefanwille/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T11:16:51Z","updated_at":"2015-12-20T17:42:20Z","closed_at":null,"body":"Hello,\r\n\r\nI have added Tic Tac Toe as an exercise for chapter 9. It's very structured and comes in 5 distinct steps, so that things remain manageable. After step 2 you have a playable game already. \r\n\r\nhttps://github.com/stefanwille/railsgirls/blob/master/exercises/pine-tutorial/chapter%2009/02-tictactoe.md\r\n\r\nI hope you enjoy it!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stefanwille/railsgirls/issues/comments/166140387","html_url":"https://github.com/stefanwille/railsgirls/issues/35#issuecomment-166140387","issue_url":"https://api.github.com/repos/stefanwille/railsgirls/issues/35","id":166140387,"user":{"login":"aydamacink","id":11429194,"avatar_url":"https://avatars.githubusercontent.com/u/11429194?v=3","gravatar_id":"","url":"https://api.github.com/users/aydamacink","html_url":"https://github.com/aydamacink","followers_url":"https://api.github.com/users/aydamacink/followers","following_url":"https://api.github.com/users/aydamacink/following{/other_user}","gists_url":"https://api.github.com/users/aydamacink/gists{/gist_id}","starred_url":"https://api.github.com/users/aydamacink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aydamacink/subscriptions","organizations_url":"https://api.github.com/users/aydamacink/orgs","repos_url":"https://api.github.com/users/aydamacink/repos","events_url":"https://api.github.com/users/aydamacink/events{/privacy}","received_events_url":"https://api.github.com/users/aydamacink/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:42:20Z","updated_at":"2015-12-20T17:42:20Z","body":"Hi Stefan,  \r\n\r\nWe hope you are doing well. Johanna and I are working on the Tic Tac Toe. So far so good. We just have a question regarding Method 4: Game#next_stone. \r\nUp until the moment our code  is \r\n\r\n```\r\ndef next_stone\r\n    @turn_count = 0\r\n    while @turn_count < 10\r\n      @turn_count = @turn_count + 1\r\n      if  @turn_count.even? == true\r\n        puts \"O\"\r\n      else\r\n         puts \"X\"\r\n      end\r\n    end\r\n  end\r\n```\r\nWhen we use your test, it gets printed 40 times ...\r\n\r\n```\r\ngame = Game.new\r\ngame.next_stone      # => 'X'\r\ngame.next_stone      # => 'O'\r\ngame.next_stone      # => 'X'\r\ngame.next_stone      # => 'O'\r\n...\r\n```\r\nThe two questions are : \r\n1) Is it ok if at this point  in the game we already run the loop and since the maximal number of moves is 10 we set it like this while ```@turn_count < 10 ```\r\n\r\n2) Should we include at this point in the method, where the X and the O should be set? something like \r\n\r\n```\r\n@board.fields[position] = \"X\"\r\n@board.fields[position] = \"O\"\r\n```\r\n\r\nThanks a lot in advance...   :smile_cat: "}}