Giter Site home page Giter Site logo

World Class about deductive_systems HOT 2 CLOSED

Tadele01 avatar Tadele01 commented on July 18, 2024
World Class

from deductive_systems.

Comments (2)

Tadele01 avatar Tadele01 commented on July 18, 2024

if we use room_id to represent each room what is the relationship between room_id and room class ?

  • get_room(room_id)- do you think its a good idea to get a room based on its id what if the agent asks room that he can not possibly move based on the rule of the game?

from deductive_systems.

joejnke avatar joejnke commented on July 18, 2024

why do you include agent_status attribute in world class?

  • because it will be used by get_room(room_id) to cross check validity of the request to get the knowledge in the room given by the room_id. A request is valid if the room given by the room_id and agent_status.current_room are neighbours. (i.e.: the agent can move from current room to the room given by room_id)

  • In addition, it is just to have a real world feeling and let the user interface access the information from the world assuming that the world always doesn't lie and the agent might lie when telling about it self.
    If we think it is unecessary we can let the user interface get the agent_status from the agent it self.

if we use room_id to represent each room what is the relationship between room_id and room class ?

I assumed that the grid will be a 2D array of rooms. So, a room in the grid can be accessed using the 2D array indexing as room_id.

get_room(room_id)- do you think its a good idea to get a room based on its id what if the agent asks room that he can not possibly move based on the rule of the game?

as stated above, the get_room(room_id) method uses the agent_status.current_room and returns a value if the room with room_id is neighbour of agent_status.current_room otherwise it raises an exception or error.

from deductive_systems.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.