Objectives of the Episode
In this Episode, we present the PyRat software and learn how to write a first program for it. In order to achieve this, we first introduce a few notions of graph theory, as well as some data structures to manipulate graphs in Python.
In addition to this, we present some good programming practice, that we ask you to respect all along the course (and beyond).
Articles to study before the Lab
- Resources if you’re starting in Python.
- Adressing a computational problem.
- Graphs and paths.
- Representing graphs.
- Good programming practices.
Test your knowledge of this Episode by taking the following quiz.
In this Lab, we learn how to manipulate the PyRat maze and to write a simple program for it, that moves (kind of) randomly.
In short, we will first install the PyRat software, then go through a given program that moves at total random, and write a new program that draws inspiration from it. Finally, we will learn how to compute statistics to compare the improved random implementation with the provided one.
Work to do for the next episode
- Finish the implementation of the program in Lab 1;
- Study the articles of Episode 2.