【跟著AIT一起學程式設計】
Python系列的最後一堂課來囉!今天我們要教大家在Python中製作Hangman 猜字遊戲,這個遊戲可以加強英文字彙和拼字能力。我們會從匯入單字題目、設定答錯次數、判斷是否答對等步驟,一步步慢慢建構出猜字遊戲。在這堂課程中,除了可以學會客製化自己的遊戲之外,大家也會複習到前幾支影片中 import、input、print、for / while、if / else等邏輯的綜合運用!如果你還沒看過前面幾支影片也沒有關係,相信老師清楚的解說會讓你馬上了解箇中要領。一起跟著做看看!#PythonForBeginners #Python
* AIT程式語言課程是因應新冠疫情而推出的線上活動之一。
Learning Python with AIT
Here is our last Python class! Today we will show you how to code a hangman word guessing game in Python. It’s a game that can help improve vocabulary and spelling. You will start by importing word banks, setting maximum guessing times…and build the game step by step. In addition to customizing a game that suits you, you will also get to review Python logic, such as import, input, print, for / while and if / else statements. Don’t worry if you haven’t watched the previous episodes, since the clear instructions make it easy. Let’s check out this video and start coding! #PythonForBeginners #Python
*The series of Python classes is part of AIT's online learning resources.
「how to make a game in python」的推薦目錄:
how to make a game in python 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳貼文
ขออัพเดตโครงการ หลักสูตรโค้ดดิ้งสำหรับเด็กไทย อันนี้สรุปให้ตามข่าวที่ รมช.ศธ. พูด
1) การส่งเสริมการโค้ดดิ่งให้กับเด็กไทย
มีอยู่ในนโยบายของภาครัฐที่ประกาศต่อสภา
2) หลักสูตรโค้ดดิ่งเริ่มต้นในเดือน พ.ย.
เปิดเทอมหน้านี้ที่จะถึง ก็พร้อมลุยกันเลย
แต่จะเริ่มนำร่องกับเด็กระดับชั้น ป.1-ป.3 ก่อน
3) การเรียนโค้ดดิ้งตามหลักสูตร
จุดประสงค์ไม่ได้สอนเด็กเป็น #โปรแกรมเมอร์
4) แต่เรียนเพื่อให้เด็กคิดมีตรรกะ ให้คิดเป็น คิดเป็นระบบ
นำไปใช้ในชีวิตประจำวันได้ คิดสร้างสรรค์ สร้างสิ่งใหม่ๆ ในชีวิตได้
5) รัฐบาลไม่ได้บังคับทุกโรงเรียนต้องเปิดหลักสูตรนี้
เงื่อนไขต้องให้โรงเรียนสมัครมาเอง
ผู้อำนวยการ และคุณครูต้องอยากสอน ไม่ได้บังคับ
....แต่น่าจะลืมถามนักเรียนว่าจะเอาด้วยไหม (อันนี้แซวเล่นนะ)
6) เดือน ต.ค. จะอบรมครูทั่วประเทศ 1,000 คน
สำหรับคุณครูอบรบ 3 วัน
ส่วนผู้อำนวยการก็ต้องเข้าอบรบด้วย แต่อบรบแค่ 1 วัน
7) ถามว่าหลักสูตรตอนนี้พร้อมหรือยัง?
ต้องบอกว่าพร้อมตั้งนานแล้ว
แต่ตามข่าวยังไม่ได้นำไปปฏิบัติใช้จริง
+++++
ความเห็นส่วนตัวผมเองก็ยังงงๆ
มันจะต่างกับหลักสูตร "วิชาวิทยาการคำนวณ" ของกระทรวงศึกษา
ที่สอนตั้งแต่ ป.1- ยันโน่นถึงม.6
มันต่างกันยังไง????
.
ส่วนเนื้อหาการเรียนและการสอนจะเป็นอย่างไรนั้น?
อันนี้ต้องติดตามตอนต่อไป ......
ถ้าใครมีน้องๆ ป.1 ถึง ป.3.
เปิดเทอมหน้าลองถามน้องดูได้ เรียนแล้วเป็นไง
.
###########
อีกอย่างหนึ่ง ขอให้ความรู้เพิ่มเติม
เห็นบางคอมเมนต์ไม่เห็นด้วยที่ใช้คำว่าโคดดิ้งสอนเด็ก
เพราะโปรแกรมเมอร์อาจคุ้นเคยกับการโค้ดดิ้งเป็น Text
.
ต้องเข้าใจว่าในระดับปฐมเวลาสอนโค้ดดิ้งเด็ก
เขาไม่ได้ใช้ภาษาอย่างเช่น C++, Java, PHP มาสอน
.
ภาษาอย่าง Python มีสอนอยู่ในหลักสูตร
ที่มีอยู่ในตำราเรียนวิชาวิทยาการคำนวณ
จะเริ่มสอนในชั้น ม.ต้น ในประถมยังก่อน
(แต่จะให้ทางโรงเรียนเลือกสอนระหว่าง Python หรือ Scratch)
.
ในระดับเด็กประถมอย่างมากสุด
จะสอนเขียนโปรแกรม จะใช้เป็น Scratch
เวลาฝรั่งบอกว่าสอนโค้ดดิ้งให้กับเด็กเล็กวัยปฐม
ก็จะใช้ Scratch เป็นส่วนใหญ่ เพื่อเน้นตรรกะ และกระบวนการคิด
.
ซึ่งมันเป็นการใช้บล็อกคำสั่ง ควบคุมตัวละครในเกม
...โดยเน้นไปที่ ฝึกตรรกะ ฝึกกระบวนการคิด
...แต่ถ้าถามว่าใช้ Scratch สร้างเกมง่ายๆ ได้ไหม ก็ตอบว่าทำได้นั่นแหละ
.
สำหรับ Scratch ฝรั่งมันก็บอกว่า เป็นภาษาโปรแกรมมิ่งเหมือนกัน
แต่เป็นชนิดหนึ่งเรียกว่า visual programming language (VPL)
เป็นภาษาภาพ ใช้ภาพสร้างโปรแกรมขึ้นมา
.
ในการทำงานจริงถ้าใครเคยอยูภาคอุตสาหากรรม
คงรู้จัก LabView ซึ่งใช้ควมคุมฮาร์ดแวร์ PLC
มันก็ใช้ภาษาภาพนี้แหละเขียนโปรแกรมควบคุม
ไม่ต้องมาเขียน Text ด้วยมือ ที่เขียนคำผิด ก็มีผลต่อโปรแกรม
.
จึงไม่น่าจะแปลกอะไรที่ฝรั่งมันจะบอกว่าใช้ Scratch สอน
เพื่อปูทักษะ ฝึกพื้นฐานตรรกะ
ก็เหมาตีรวมว่าเป็นการโค้ดดิ้งไปเลย
กลายเป็นคำที่ขายได้ หรือคำการตลาด เวลาใช้โปรโมต
.
---
ที่มาข่าว
https://www.youtube.com/watch?v=SHXRHbdpcnY
สรุปโดย โปรแกรมเมอร์ไทย thai programmer
I would like to update the program of the teaching course for Thai kids. This one is summarized according to the news at the NCO. .. Speak.
1) Promotion of codeing for Thai children.
contained in public sector policy declared to congress
2) Code wording course starts in Feb. Y.
This next semester will be ready. Let's fight
But to start the pilot with the grade school kid 1-P. 3 first
3) Study code following the course.
Purpose doesn't teach kids to be #programmers.
4) But study to make kids think logically. Think as a system.
Apply everyday, get creative, create new things in life.
5) Government is not mandatory. All schools have to open this course.
Conditions must be applied for the school itself.
The director and the teacher must want to teach, not mandatory.
.... But I should forget to ask students whether they want to take it too (this one is teasing.)
6) The month of the year. .. I will train 1,000 teachers nationwide.
For the teacher. 3 days of training.
The director also has to go to the battle, but the training is only 1 days.
7) Ask if the course is now ready?
I have to say I have been ready for a long time
But according to the news, it hasn't been implemented yet.
+++++
My personal opinion is still confused.
It will be different to the ′′ Computational Science ′′ course of the Ministry of Education.
I have taught since the first grade. 1-Solstice to university. 6
What is the difference????
.
What would the content and teaching be?
This one must follow the next episode......
If anyone has kids in P.O. 1 to the P.O. 3.
Open next semester. Ask my sister. How was she studying?
.
###########
One more thing, more knowledge.
I see some comments that I don't agree with using the word ′′ code ′′ to teach kids ′′
Because programmers may be familiar with Text code rolling.
.
I need to understand that in premiere time teaching child code.
He doesn't use language like C ++, Java, PHP to teach.
.
Languages like Python are taught in the course.
Available in computational science textbooks.
Gonna start teaching in middle school class Early in primary school.
(But the school will choose between Python or Scratch)
.
At the highest grade kid level
I will teach programming. I will use it as Scratch.
When a foreigner says that she teaches code to young children in early age.
Scratch will be mostly used to focus on logic and thought process.
.
It's a character control command block in a game.
... With focus on practicing logic, practicing thought processes.
... But if you ask me whether I can use Scratch to create an easy game, I will say I can do it.
.
For Scratch, it says it's a programming language too.
But it's a kind called visual programming language (VPL)
In visual language, use image to create a program.
.
In real work, if anyone has ever lived in the industry.
I would know LabView which uses PLC hardware control.
It's using this image language. Programming. Control.
Don't have to write Text with hand written words. It affects the program.
.
It shouldn't be strange that a foreigner says that they use Scratch to teach.
To pave the skills, practice the basic logic.
Well, it's just a code.
Become a selling word or marketing word when you use to promote it.
.
---
News Source
https://www.youtube.com/watch?v=SHXRHbdpcnY
Summary by Thai Thai Thai programmerTranslated