1. Labتاقیگە

Visual programming labتاقیگەی بەرنامەسازیی دیدەیی

In you build a from blocks instead of typing. Put the blocks in order, use a to repeat and an to decide, then press Run and watch the follow your one by one.

لە لە جیاتی نووسین بە بلۆک دروست دەکەیت. بلۆکەکان بە ڕیز دابنێ، بۆ دووپاتەکردنەوە و بۆ بڕیاردان بەکاربهێنە، پاشان «جێبەجێکردن» دابگرە و سەیر بکە چۆن یەک لە دوای یەک جێبەجێ دەکات.

Missionئەرک

The same program in Pythonهەمان بەرنامە بە Python

 

What visual programming isبەرنامەسازیی دیدەیی چییە

Definitionپێناسە

Making a by arranging pictures on the screen instead of typing text. In Scratch and tools like it, you snap together like puzzle pieces; in tools such as Node-RED, you join boxes () with wires. The pieces fit only in allowed ways, so typing and mistakes cannot happen.

دروستکردنی بە ڕێکخستنی وێنە لەسەر شاشە لە جیاتی نووسینی دەق. لە Scratch و ئامرازە هاوشێوەکانیدا وەک پارچەی پازڵ بە یەکەوە دەلکێنیت؛ لە ئامرازەکانی ، وەک ⁦Node-RED⁩، چوارگۆشەکان () بە وایەر بە یەکەوە دەبەستیت. پارچەکان تەنیا بەو شێوانەی ڕێگەپێدراون پێکەوە دەلکێن، بۆیە هەڵەی نووسین و ڕوو نادات.

Blocks are a friendly way to learn, because the cannot misread them: there are no missing brackets or spelling mistakes. The ideas are exactly the same as in typed code. Scratch (from MIT) and Blockly (from Google) are the best-known block tools, and many robots and drones are taught with them.

بلۆکەکان ڕێگایەکی ئاسانن بۆ فێربوون، چونکە ناتوانێت بە هەڵە بیانخوێنێتەوە: کەوانەی بیرچوو یان هەڵەی ڕێنووس نییە. بیرۆکەکان ڕێک وەک کۆدی نووسراون. Scratch (لە MITـەوە) و Blockly (لە Googleـەوە) ناسراوترین ئامرازەکانی بلۆکن و زۆر ڕۆبۆت و درۆن بەوانە فێر دەکرێن.

Three big ideasسێ بیرۆکەی گەورە

  1. Sequence: the runs blocks from top to bottom, one by one. Changing the order changes the result.
  2. : “repeat 4 times” runs the blocks inside it four times; “repeat until” keeps going until a becomes true.
  3. Decision: “if … else” checks a and runs only one of its two parts.
  1. زنجیرە: بلۆکەکان لە سەرەوە بۆ خوارەوە، یەک لە دوای یەک جێبەجێ دەکات. گۆڕینی ڕیزبەندی ئەنجامەکە دەگۆڕێت.
  2. : «٤ جار دووپاتە بکەرەوە» ئەو بلۆکانەی لە ناویدان چوار جار جێبەجێ دەکات؛ «دووپاتە بکەرەوە تا» بەردەوام دەبێت تا ڕاست دەبێت.
  3. بڕیاردان: «ئەگەر … ئەگەرنا» دەپشکنێت و تەنیا یەکێک لە دوو بەشەکەی جێبەجێ دەکات.

The blocks of level 6 are this code:

بلۆکەکانی ئاستی ٦ ئەم کۆدەی :

PYTHON
while not at_flag():
    if path_ahead():
        move()
    else:
        turn_right()

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.