Check out this Go quiz and please give us some feedback

polaris · · 863 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi all,</p> <p>We&#39;re working on a real-time multiplayer trivia game and recently received great feedback for our Python topic. We&#39;ve just added a topic on Go and it&#39;s currently our featured topic - players answer questions on Go in real time and the fastest player with the most correct answers wins.</p> <p>Please check it out and let us know your feedback on the questions and the gameplay: <a href="https://triviusgame.com">https://triviusgame.com</a></p> <p>Feel free to check out our other topics as well.</p> <p>Thanks, and have fun!</p> <hr/>**评论:**<br/><br/>egonelbre: <pre><blockquote> <p>How many looping constructs available in Go?</p> </blockquote> <p>Correct answer should be at least 2 -&gt; <a href="https://play.golang.org/p/AbQvdj8Stb">https://play.golang.org/p/AbQvdj8Stb</a>.</p> <pre><code>&gt;^.^&lt; </code></pre></pre>orionmelt: <pre><p>Ha ha, sneaky, using goto! :)</p> <p>However, from the <a href="https://tour.golang.org/flowcontrol/1" rel="nofollow">Tour</a>:</p> <blockquote> <p>Go has only one looping construct, the for loop.</p> </blockquote></pre>TheMerovius: <pre><p>I find the question a bit ambiguous, though (the formulation on the tour notwithstanding). I would count <code>for {}</code>, <code>for stmt; expr; stmt {}</code> and <code>for k, v := range val</code> as three different constructs. go only has one <em>keyword</em> for loops, but more than one <em>construct</em>.</p> <p>[edit] technically I would even differentiate between <code>for k := range val</code> (maps/slices/arrays), <code>for v := range val</code> (channels) and <code>for k, v := range val</code> (maps/slices/arrays again)</p></pre>orionmelt: <pre><p>That&#39;s a good point. The motive behind the question was more to highlight the fact that Go does NOT have while and do while, but what you&#39;re saying makes sense. I&#39;ll look into how to reword the question, thanks.</p></pre>FrenchDonkey: <pre><p>Really fun ! </p></pre>orionmelt: <pre><p>Thanks!</p></pre>egonelbre: <pre><p>Note, one of the things that would be helpful is to show all the answers at the final screen with correct answers and links to places where you can see the correct answer. I.e. that way you could actually learn from the sources.</p></pre>orionmelt: <pre><p>Thanks for your feedback, this has been suggested before and is definitely on our to-do list.</p></pre>drewindo: <pre><p>Very pleasantly distracting. The &#34;no switching apps&#34; during a game that just popped for me when I hopped over to make this comment after an early answer was a nice touch, too. ;)</p></pre>orionmelt: <pre><p>Thanks! It&#39;s so players can&#39;t Google the question in a new tab. :)</p></pre>f2f: <pre><p>go: a language where old farts can still be slightly better ;)</p> <p><a href="http://i.imgur.com/18h3KLL.png" rel="nofollow">http://i.imgur.com/18h3KLL.png</a></p></pre>dominikh: <pre><p>It seems to be impossible to score higher than a <del>97</del> 99?</p></pre>orionmelt: <pre><p>The game itself doesn&#39;t prevent a perfect score, although it seems like it&#39;s hard to get. We&#39;ve only had a couple of users score 100 so far. :)</p></pre>dominikh: <pre><blockquote> <p>Which of these features does Go NOT have? → Assertions</p> </blockquote> <p>That&#39;s a bit of an unfair/ambiguous question, considering there&#39;s type assertions. </p></pre>orionmelt: <pre><p>Thank you, I&#39;ll look into rewording it.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

863 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传