Title: games.py line 121 missing argument in call to legal_moves method · Issue #8 · aimacode/aima-python · GitHub
Open Graph Title: games.py line 121 missing argument in call to legal_moves method · Issue #8 · aimacode/aima-python
X Title: games.py line 121 missing argument in call to legal_moves method · Issue #8 · aimacode/aima-python
Description: What steps will reproduce the problem? 1. call random_player(game,state) in games.py 2. 3. What is the expected output? What do you see instead? Expected: A valid move returned Unexpected Outcome: Traceback (most recent call last): File ...
Open Graph Description: What steps will reproduce the problem? 1. call random_player(game,state) in games.py 2. 3. What is the expected output? What do you see instead? Expected: A valid move returned Unexpected Outcome: ...
X Description: What steps will reproduce the problem? 1. call random_player(game,state) in games.py 2. 3. What is the expected output? What do you see instead? Expected: A valid move returned Unexpected Outcome: ...
Opengraph URL: https://github.com/aimacode/aima-python/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"games.py line 121 missing argument in call to legal_moves method","articleBody":"```\nWhat steps will reproduce the problem?\n1. call random_player(game,state) in games.py\n2.\n3.\n\nWhat is the expected output? What do you see instead?\n\nExpected: A valid move returned\n\nUnexpected Outcome: \nTraceback (most recent call last):\n File \"\u003cpyshell#28>\", line 1, in \u003cmodule>\n games.random_player(game,gamestate)\n File \"/aima-python-read-only/games.py\", line 121, in random_player\n return random.choice(game.legal_moves(state))\nTypeError: legal_moves() takes exactly 2 arguments (1 given)\n\n\nWhat version of the product are you using? On what operating system?\n\nPy 2.5.2 /linux latest aima code from svn\n\nPlease provide any additional information below.\n\nTo fix change line 121 \nfrom:\nreturn random.choice(game.legal_moves())\nto:\nreturn random.choice(game.legal_moves(state))\n\n\n\n```\n\nOriginal issue reported on code.google.com by `nei...@gmail.com` on 30 Jun 2008 at 1:55\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2016-02-02T00:11:24Z","url":"https://github.com/aimacode/aima-python/issues/8"}
| 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:0cbba6ea-4b30-71f3-4b23-6c2df36ade9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE42:2C69FC:1EBCBB8:28AC505:6B023806 |
| html-safe-nonce | 4a095223f9b9495e15cb645b928dd730575ba5479a3ddc07cb9517b40fa32ef0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTQyOjJDNjlGQzoxRUJDQkI4OjI4QUM1MDU6NkIwMjM4MDYiLCJ2aXNpdG9yX2lkIjoiNzk0OTY0MTc4ODQzMDYyODg3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6cebbe62507749ea8a89b761033dd8401d02042e9945c75c7acb3c2f63b7e49b |
| hovercard-subject-tag | issue:130526162 |
| 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/aimacode/aima-python/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1845dbb3d5c3036212bf25999d2cc308be443953a9ee1de2e3f3a5b4abb2c8b/aimacode/aima-python/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1845dbb3d5c3036212bf25999d2cc308be443953a9ee1de2e3f3a5b4abb2c8b/aimacode/aima-python/issues/8 |
| og:image:alt | What steps will reproduce the problem? 1. call random_player(game,state) in games.py 2. 3. What is the expected output? What do you see instead? Expected: A valid move returned Unexpected Outcome: ... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/aimacode/aima-python git https://github.com/aimacode/aima-python.git |
| octolytics-dimension-user_id | 17015933 |
| octolytics-dimension-user_login | aimacode |
| octolytics-dimension-repository_id | 50881110 |
| octolytics-dimension-repository_nwo | aimacode/aima-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50881110 |
| octolytics-dimension-repository_network_root_nwo | aimacode/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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width