Clojure Operators – Sliding Door Scenario

This scenario is concerned with doors. Doors can be in different states (open or closed,locked or unlocked). Doors connect rooms and are un/locked with specific keys.Specify and build the following operators…• open (an unlocked door)• close (a door)• lock (a door with a key)• unlock (with a key)• move (from one room to another)

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply