Title: search algorithms outside classes ? · Issue #32 · ivan133/aima-python · GitHub
Open Graph Title: search algorithms outside classes ? · Issue #32 · ivan133/aima-python
X Title: search algorithms outside classes ? · Issue #32 · ivan133/aima-python
Description: Hi, I'm currently trying to code algorithms provided in AIMA, but I don't understand why the Agent class isn't used in chapter 3 and 4, where agent programs are implemented as functions outside classes, and not as Agent's methods. For in...
Open Graph Description: Hi, I'm currently trying to code algorithms provided in AIMA, but I don't understand why the Agent class isn't used in chapter 3 and 4, where agent programs are implemented as functions outside cla...
X Description: Hi, I'm currently trying to code algorithms provided in AIMA, but I don't understand why the Agent class isn't used in chapter 3 and 4, where agent programs are implemented as functions...
Opengraph URL: https://github.com/ivan133/aima-python/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"search algorithms outside classes ?","articleBody":"```\nHi,\nI'm currently trying to code algorithms provided in AIMA, but I don't \nunderstand why the Agent class isn't used in chapter 3 and 4, where agent \nprograms are implemented as functions outside classes, and not as Agent's \nmethods.\nFor instance, instead of \"def SimpleReflexAgentProgram(rules, \ninterpret_input):\", why not \nclass SimpleReflexAgent(Agent):\n def __init__(self, rules):\n ... \n def simple_reflex_agent_program(percept):\n ...\n Agent.__init__(self, simple_reflex_agent_program)\n\nI guess there's a good reason for that, because previous versions of the code \nwere actually doing that. Could someone please explain to me ?\n```\n\nOriginal issue reported on code.google.com by `tournev...@gmail.com` on 19 Jul 2012 at 12:23\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-03-25T03:15:48Z","url":"https://github.com/ivan133/aima-python/issues/32"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7228bdf7-1953-3a20-e138-81968eb31c99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD66:22FD1B:161F2:1DE10:6AFE7DE2 |
| html-safe-nonce | 7b97fd00600299ca20fb7684ff8f39a80d3f0acdaa84c7a9afb720515a9660e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDY2OjIyRkQxQjoxNjFGMjoxREUxMDo2QUZFN0RFMiIsInZpc2l0b3JfaWQiOiIzMjU4OTY4OTQyMDE3Njc0NzIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7fc8754b54ba28890d23f7e074dbef5a648eba7db7b4df5900c37a97f8fd03dd |
| hovercard-subject-tag | issue:64160899 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ivan133/aima-python/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/226f8e036ebc211ac6d1f0fd728a9cac753a69a75abb241e7152e01eac689af3/ivan133/aima-python/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/226f8e036ebc211ac6d1f0fd728a9cac753a69a75abb241e7152e01eac689af3/ivan133/aima-python/issues/32 |
| og:image:alt | Hi, I'm currently trying to code algorithms provided in AIMA, but I don't understand why the Agent class isn't used in chapter 3 and 4, where agent programs are implemented as functions outside cla... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/ivan133/aima-python git https://github.com/ivan133/aima-python.git |
| octolytics-dimension-user_id | 4018236 |
| octolytics-dimension-user_login | ivan133 |
| octolytics-dimension-repository_id | 32839887 |
| octolytics-dimension-repository_nwo | ivan133/aima-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32839887 |
| octolytics-dimension-repository_network_root_nwo | ivan133/aima-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width