课程: AI Algorithms for Game Design with Python
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
The Python setting for the cat trap - Python教程
课程: AI Algorithms for Game Design with Python
The Python setting for the cat trap
- [Instructor] The Python setting for the cat trap consists of two source files. First, we have cat_trap_algorithms.py. This is where we'll spend most of our time. Now be advised that I will only show you some select parts of the code, the relevant parts to the algorithms at hand. So feel free to pause the videos at any time you feel you need to read the code slowly. The second source file is main.py. This file implements the server that communicates with the graphical user interface VS Code extension and the logic for the game. We won't see much from this file in the course, but this is the one you will need to run to play the game, so feel free to read through its code. You may also want to run this file in debug mode if you'd like to use features like breakpoint, watches and step execution. You can configure the play button at the top right to run or debug by clicking on its dropdown button. I will select to run. When you do this, you may see a message about your application…
内容
-
-
-
(已锁定)
Some history as motivation3 分钟 46 秒
-
(已锁定)
Different types of games2 分钟 17 秒
-
(已锁定)
Tree-based decision-making2 分钟 28 秒
-
(已锁定)
Time complexity of brute-force approaches2 分钟 56 秒
-
(已锁定)
Time complexity of chess2 分钟 31 秒
-
The cat trap game3 分钟 36 秒
-
(已锁定)
The Python setting for the cat trap6 分钟 38 秒
-
(已锁定)
Code example: A random cat6 分钟 8 秒
-
(已锁定)
-
-
-
-
-