{"action":"closed","issue":{"url":"https://api.github.com/repos/niklasf/python-chess/issues/59","repository_url":"https://api.github.com/repos/niklasf/python-chess","labels_url":"https://api.github.com/repos/niklasf/python-chess/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/niklasf/python-chess/issues/59/comments","events_url":"https://api.github.com/repos/niklasf/python-chess/issues/59/events","html_url":"https://github.com/niklasf/python-chess/issues/59","id":114476875,"number":59,"title":"Feature Request: Setting Castling Rights","user":{"login":"asdfjkl","id":397515,"avatar_url":"https://avatars.githubusercontent.com/u/397515?v=3","gravatar_id":"","url":"https://api.github.com/users/asdfjkl","html_url":"https://github.com/asdfjkl","followers_url":"https://api.github.com/users/asdfjkl/followers","following_url":"https://api.github.com/users/asdfjkl/following{/other_user}","gists_url":"https://api.github.com/users/asdfjkl/gists{/gist_id}","starred_url":"https://api.github.com/users/asdfjkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asdfjkl/subscriptions","organizations_url":"https://api.github.com/users/asdfjkl/orgs","repos_url":"https://api.github.com/users/asdfjkl/repos","events_url":"https://api.github.com/users/asdfjkl/events{/privacy}","received_events_url":"https://api.github.com/users/asdfjkl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-11-01T15:45:13Z","updated_at":"2016-11-30T16:30:29Z","closed_at":"2016-11-30T16:30:29Z","body":"It would be nice to have the following high-level functions:\n\ndef set_kingside_castling_rights(color, bool_val)\ndef set_queenside_castling_rights(color, bool_val)\n\nAlso \nclean_castling_rights()\nis not really clear to me. Does it reset the castling rights of the current board? If not, how do I have to reset? Like this: board.castling_rights = board.clean_castling_rights() ?!\n\nBackground: I have a \"Enter Position\" functionality in my chess GUI. So far I just copied & pasted the low-level bitmask manipulation from the python-chess lib-source code, but it seems to have changed from 0.8 to 12.5, and I am really lost in how they are encoded. Hence, having these high-level calls would be highly appreciated...\n## \n"}}
{"actor":{"display_login":"niklasf"}}