Перейти к содержимому

Python 初級:Tic-Tac-Toe 井字棋|過三關|Project 1|教學|廣東話

kfsoft

0:00 / 0:00

Python 初級:Tic-Tac-Toe 井字棋|過三關|Project 1|教學|廣東話

5 671 просмотр · 4 г. назад
kfsoft
23,7 тыс. подписчиков
5 671 просмотр · 4 г. назад
Patreon:   / kfsoft   Tic-Tac-Toe mini-project is for beginners who completed the first 6 lessons. 1) Game loop 2) Pusedocode 3) Computer move strategies (random, minimax, etc) Source: https://github.com/learn10kYear/tic-t... 編程著重實踐,井字棋(過三關)是經典的入門語法練習,此迷你項目適合完成1-6課的初學者。 00:00 Introduction 01:11 Human VS computer (2 players game) 02:14 Game rules 04:26 Game states 07:47 User input 08:49 Win conditions 09:47 Game loop 13:58 Psuedocode of game loop 17:16 Generate computer move 21:08 Strategy 2ab (win move) 23:13 Strategy 3 (minimax) - optional 31:20 Demo 32:33 Object-oriented programming (OOP) 33:30 Run game 36:34 Code walkthrough 38:20 Constructor: board initialization 39:11 Game loop: start_game() 41:44 Print board 43:12 User input 46:03 Human move 47:30 Find winner 54:21 Computer move 1: random move 57:26 Computer move 2: win move 01:08:44 Computer move 3: minimax 01:18:30 Summary & conclusion Python入門:第1課 - PyCharm + Data Types    • Python 入門:第1課 - PyCharm + Data Types | 教學 ...   Python入門:第2課 - Python containers (1): List, Tuple    • Python 入門:第2課 - Python containers (1): Lis...   Python入門:第3課 - Python containers (2): Dictionary & Set    • Python 入門:第3課 - Python containers (2): Dic...   Python入門:第4課 - If-Else, Looping, Try-except    • Python 入門:第4課 - If-Else, Looping, Try-exce...   Python入門:第5課 - Function + File    • Python 入門:第5課 - Function + File | 教學 | 廣東話   Python入門:第6課 - Class and Object    • Python 入門:第6課 - Class + Object | 教學 | 廣東話   Python入門:Project 1 - Tic-Tac-Toe 井字棋|過三關    • Python 初級:Tic-Tac-Toe 井字棋|過三關|Project 1|教學...   Python入門:第7課 - URL, JSON, Sqlite    • Python 入門:第7課 - URL, JSON, Sqlite | 教學 | 廣東話   Python入門:第8課 - 用Flask進行Web開發    • Python 入門:第8課 - 用Flask進行Web開發|教學|廣東話  - Py...   Python入門:第9課 - Flask + DB ORM    • Python 入門:第9課 - Flask + Database ORM|教學|廣東...   Python入門:第10課 - Flask補充1    • Python 入門:第10課 - Flask - blueprint / route...   Python入門:第11課 - Flask補充2    • Python 入門:第11課 - Flask web - form / sessio...   Python入門:Project 2 - Password generator 密碼生成器    • Python 初級:Password Generator 密碼生成器|Project...   Python入門:Apache 安裝Flask app - mod_wsgi    • Python 入門:Deploy Flask app to Apache - mod...   Python入門:第12課 - GUI (Tkinter) + PyInstaller 打包EXE    • Python 入門:第12課 - 1小時上手Tkinter GUI + PyInst...  1 Python入門:第13課 - More loops - Iterable Vs Iterator    • Python 入門:第13課 - Loops - Iterable Vs Itera...   Python入門:第14課 - More loops - Generator    • Python 入門:第14課 - Loops - Generator|教學|廣東話   Python初級:第15課 - Web Scraping 靜態網頁抓取    • Python 初級:第15課 - Web Scraping 靜態網頁抓取 w/Bea...   Python初級:第16課 - Web Scraping 動態網頁抓取    • Python 初級:第16課 - Web Scraping 動態網頁抓取 w/Sel...   Python初級:第17課 - Pygame貪食蛇遊戲    • Python 初級:第17課 - Pygame貪食蛇遊戲|Snake game|教學...   Python初級:第18課 - if _name_ == '__main__' 入口點    • Python 初級:第18課 - if __name__ == '__main__'...   Python初級:第19課 - Type hints 類型提示    • Python 初級:第19課 - Type Hints 類型提示|教學|廣東話|60fps   Python初級:第20課 - Decorator 裝飾器    • Python入門 - Decorator 裝飾器|function|教學|廣東話|6...   Python初級:第21課 - Multi-threading 多線程    • Python 初級:Multi-threading 多線程|教學|廣東話|60fps   Python初級:第22課 - Multi-processing 多進程    • Python 初級:Multi-processing 多進程|教學|廣東話|60fps   Python初級:Django 入門 1 - Model + Admin Site    • Python 初級:Django 入門 1 - Model + Admin site...   Python初級:Django 入門 2 - Template + View    • Python 初級:Django 入門 1 - Model + Admin site...   Python初級:Django 入門 3 - 部署    • Python 初級:Django項目部署 - Apache + mod_wsgi|教...   Database初級:SQL入門    • Database 初級:2.5小時 SQL入門|教學|廣東話   Database初級:JOIN連接    • Database 初級:SQL JOIN連接|教學|廣東話   Database初級:MongoDB入門    • Database 初級:2.5小時 MongoDB 入門|教學|廣東話|60fps   Python初級:openpyxl - 讀寫 MS Excel 文件    • Python 初級:openpyxl - Python 讀寫 MS Excel 文件...   Python初級:python-docx - 讀寫 MS Word 文件    • Python 初級:python-docx 讀寫 MS Word文件 |教學|廣東話   Python入門 - 數據科學 - Jupyter Lab & Notebook 安裝+入門教程    • Python 入門 - 數據科學:Jupyter notebook & Jupyte...   Python入門 - 數據科學 - Anaconda + PyCharm 安裝    • Python 入門 - 數據科學:Anaconda + PyCharm 安裝|數據分...   Python初級 - 數據科學 - Numpy入門    • Python 初級 - 數據科學:NumPy入門教程|數據分析|Data Scien...   Python初級 - 數據科學 - Pandas入門    • Python 初級 - 數據科學:2小時 pandas 入門教程 - 初版|數據分析...   Python初級 - 數據科學 - Pandas入門 (第二版 更新column部分)    • Python 初級 - 數據科學:3小時 pandas 入門教程 - 第2版|數據分...   Python初級 - 數據科學 - Pandas時間 + 圖表    • Python 初級 - 數據科學:pandas 時間 + 圖表教程|股票|數據分析|...   Python初級 - 數據科學 - Pandas類別 + 樣式    • Python 初級 - 數據科學:pandas 類別 + 樣式|Categorica...   Python初級 - 機器學習 - Scikit-learn 入門    • Python 初級 - 機器學習:scikit-learn 入門|AI|人工智能|數...   Python初級 - 機器學習 - Scikit-learn - Regression 回歸    • Python 初級 - 機器學習:scikit-learn - regression...   Python初級 - 機器學習 - Scikit-learn - Classification 分類    • Python 初級 - 機器學習:scikit-learn - classifica...   Python初級 - 識別篇 - 光學文字辨識OCR + Google翻譯    • Python 初級 - 識別篇:文字辨識 + Google翻譯|OCR|教學|廣東話   Python初級 - 識別篇 - TTS + 語音辨識    • Python 初級 - 識別篇:TTS + 語音辨識|Speech Recognit...   Python入門 - 技巧篇 - Debug 偵錯 / 除錯 / 調試    • Python 入門 - 技巧篇:Debug 偵錯|教學|廣東話   Python入門 - 工具篇 - Visual Studio Code入門    • Python 初級:Visual Studio Code入門|配置|教學|廣東話   Python入門 - 工具篇 - PyCharm 10個必學功能    • Python 入門 - 工具篇:PyCharm 10個必學功能 | 教學 | 廣東話   Python入門 - 工具篇 - Virtual Environment 虛擬環境    • Python 初級:Virtual Environment 虛擬環境|教學|廣東話|...   Python入門 - 工具篇 - PowerShell 定制    • Python入門 - 工具篇 - Shell定制 - Windows Termina...   Python入門 - 工具篇 - Git入門    • Python入門 - 工具篇 - git入門|分佈式版本控制|GitHub工作流程|...   https://kfsoft.info