编程入门学习 CodeMonkey.co.il

非常简单的编程学习网站: http://www.codemonkey.co.il/,通过三四个语法控制猴子和乌龟移动吃光所有香蕉,总共30关。很有趣,又能了解编程的一些基本概念,特别适合没有太多编程基础的人。

step用来移动对象,默认移动猴子。 “turtle.step 10” 用来移动乌龟10步。
turn 用于转动方向,”turn left”:向左移动90度,”turn -90″: 顺时针移动90度,“turnTo bridge”:移动到bridge所在方向。
3.times -> 实现循环

要完成任务,需要躲避障碍,搭乘乌龟在河中移动,其中的距离可以使用尺子在编程时度量到。

Screenshot from 2014-08-01 17:56:27 Screenshot from 2014-08-01 17:40:28 Screenshot from 2014-08-01 17:33:19

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.