Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto #1

Open
zaggynl opened this issue May 26, 2019 · 2 comments
Open

Howto #1

zaggynl opened this issue May 26, 2019 · 2 comments

Comments

@zaggynl
Copy link

zaggynl commented May 26, 2019

Could you create a short howto on getting this to work?
Had a go at it and got as far joining a room.

@zaggynl
Copy link
Author

zaggynl commented May 26, 2019

Found out so far:

Installation/prerequisies:
sudo pip3 install pygame pygame-menu matrix_client
python3 reversi.py (startup takes a while)

After "room <name !id"> appears use right/left arrows keys to switch room
Press enter to start in selected room.
To play use arrow keys to move green selection box, press enter to make move.

Player need to have power 50 otherwise cannot move?
matrix_client.errors.MatrixRequestError: 403: {"errcode":"M_FORBIDDEN","error":"You don't have permission to post that to the room. user_level (0) < send_level (50)"}

Eats a lot of CPU.

@Allymonies
Copy link
Owner

Yeah that's all correct, I'll add it to the readme, thanks! As for power level 50, you need to be able to send state events, which requires the permission labelled "Change Settings" (It'd probably be possible to send normal events, but then you run the risk of a client connecting and being unable to find the previous game event because it's buried under chat history.)

CPU Usage was a bug that should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants