Wall
o1.robots.Wall
The singleton object Wall
represents walls, that is, squares that constitute unpassable barriers for robots. A robot can never be in the same location with a wall.
Since all wall locations in all robot worlds are alike and immutable, it is enough to have a single Wall
object that can be placed anywhere in any robot world. There is no need for separate instances for each wall square.
Attributes
- Supertypes
Members list
Inherited
Not inherited +1
- Not inherited
- Square