Homework 1
Agents and Python  

powered by FreeFind

Modified: 

Overview - The purpose of the first homework is to review Chapter 2 concepts and practice and Python programming skills needed throughout the course. 

Assignment

  1. Download and modify the Python program of Figure 2.8:

    Increase the number of squares from 2 to 5, cleaning all squares.

    The agent should only sense and act on the square where it is located.

    Allow any starting square.

    Use run(20) to test and display results.

    Hint: Maintain state of agent direction (i.e. Right or Left) or add direction to information sensed from the environment.

     

  2. Download and modify the Python program of Figure 2.9:

    Increase the number of squares from 2 to 5, cleaning all squares.

    The agent should only sense and act on the square where it is located.

    Allow any starting square.

    Use run(20) to test and display results.

    Hint: Maintain state of agent direction (i.e. Right or Left) or add direction to information sensed from the environment.

Turn in

  1. Cover page - Your name, date, and Homework 1 should be on the first page. Staple all pages together.
  2. Printouts - Print Assignment a and b Python program and Shell execution.