课程: AI Algorithms for Game Design with Python

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

The Python setting for the cat trap

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…

内容