爱编码的Farmer

  • 主页
  • 编程开发
  • 运营维护
  • 随心笔记
  • 留言页面
  • 打赏
爱编码的Farmer
我是Farmer,我为自己代言
  1. 首页
  2. 编程开发
  3. 正文

微软研究院正式发布编程学习游戏Code Hunt

2014年5月31日 2534点热度 0人点赞 0条评论

微软研究院正式推出一款基于浏览器的教育代码游戏——Code Hunt,可让用户在玩游戏的同时学习编码。此款游戏可供入门级的学生到高级编程师、软件工程师使用,招聘公司也可用它来测试招聘者的代码水平等。

北京时间5月16日消息,据国外科技网站The Next Web报道,微软研究院今日正式推出Code Hunt。Code Hunt是一款基于浏览器的教育编码游戏,可让用户在游戏的过程中学习代码编写。游戏规则很简单:玩家只要按要求编写代码来升级。

Code Hunt可在各种浏览器中运行,但目前仅支持Java和C#两种语言,算是一款解密游戏。针对的用户群体广泛,可供入门级别的学生到高级编程师或软件工程师使用,此外这款游戏还可为经验丰富的开发人员用来提升自己的编程技巧,招聘公司也可用此款游戏来测试招聘者的代码水平等。Code Hunt有很多的等级,而且具有挑战性。当用户进入到游戏界面时,玩家要找到一些秘密的代码片段并找出最终的输出结果,然后按要求填入什么样的语句才能执行出这一结果。当你输入语言执行程序后,系统会为你补充的内容评分,只有你补充的代码是精简并高效时,才能得到高分,才可进行下一轮的挑战。

Code Hunt基于Pex技术的,是在微软研究院的动态符号执行(dynamic symbolic execution)技术基础上开发的,可运行在Azure上。此外,为了能够吸引玩家来玩这个游戏,这款游戏还设置了排行榜。有些代码学起来是很枯燥无味的,而通过Code Hunt可使其变得有趣、易学。

游戏地址


这么好的游戏肯定要玩下啦~~
这下面是我过关的答案,勿喷,我选的是 C#

00.02

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x+1;
}
}[/cpp]

00.03

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x*2;
}
}[/cpp]

00.04

[cpp]using System;
public class Program {
public static int Puzzle(int x, int y) {
return x+y;
}
}[/cpp]

01.01

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return -x;
}
}[/cpp]

01.02

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x-2;
}
}[/cpp]

01.03

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x*x;
}
}[/cpp]

01.04

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x*3;
}
}[/cpp]

01.05

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return x/3;
}
}[/cpp]

01.06

[cpp]using System;
public class Program {
public static int Puzzle(int x) {
return 4/x;
}
}[/cpp]

01.07

[cpp]using System;
public class Program {
public static int Puzzle(int x, int y) {
return x-y;
}
}[/cpp]

01.08

[cpp]using System;
public class Program {
public static int Puzzle(int x, int y) {
return x+y*2;
}
}[/cpp]

01.09

[cpp]using System;
public class Program {
public static int Puzzle(int x, int y) {
return x*y;
}
}[/cpp]

01.10

[cpp]using System;
public class Program {
public static int Puzzle(int x, int y) {
return x+y/3;
}
}[/cpp]

标签: 学习 微软 游戏
最后更新:2017年12月28日

Farmer

不敢说什么

点赞
< 上一篇
下一篇 >

文章评论

取消回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

COPYRIGHT © 2021 icodef.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

湘ICP备19008073号