Comments (2)
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.
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 theroom_id
. A request is valid if the room given by theroom_id
andagent_status.current_room
are neighbours. (i.e.: the agent can move from current room to the room given byroom_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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deductive_systems.