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

Implement info protocol #5

Open
osvegn opened this issue Nov 15, 2022 · 0 comments
Open

Implement info protocol #5

osvegn opened this issue Nov 15, 2022 · 0 comments
Assignees
Labels
Communication protocol All things relative to the communication protocol Feature New feature to implement Mandatory protocol This protocol is mandatory

Comments

@osvegn
Copy link
Owner

osvegn commented Nov 15, 2022

Describe the feature

  • Implement the info protocol

Describe alternatives

Describe any alternative to the feature describe before here

Additionals


INFO [key] [value]
The manager sends information to the brain. The brain can ignore it. However, the brain will lose if it exceeds the limits. The brain must cope with situations when the manager doesn't send all information which is mentioned in this document. Most of this information is sent at the beginning of a match. The time limits will not be changed in the middle of a match during a tournament. It is recommended to react on commands at any time, because the human opponent can change these values even when the brain is thinking.

The key can be:
timeout_turn - time limit for each move (milliseconds, 0=play as fast as possible)
timeout_match - time limit of a whole match (milliseconds, 0=no limit)
max_memory - memory limit (bytes, 0=no limit)
time_left - remaining time limit of a whole match (milliseconds)
game_type - 0=opponent is human, 1=opponent is brain, 2=tournament, 3=network tournament
rule - bitmask or sum of 1=exactly five in a row win, 2=continuous game, 4=renju
evaluate - coordinates X,Y representing current position of the mouse cursor
folder - folder for persistent files

@osvegn osvegn added the Communication protocol All things relative to the communication protocol label Nov 15, 2022
@osvegn osvegn self-assigned this Nov 15, 2022
@osvegn osvegn added the Mandatory protocol This protocol is mandatory label Nov 15, 2022
@osvegn osvegn removed their assignment Nov 16, 2022
@osvegn osvegn added the Feature New feature to implement label Nov 18, 2022
@osvegn osvegn self-assigned this Nov 19, 2022
osvegn added a commit that referenced this issue Nov 19, 2022
[FIX] game_rule fonctions if they failed on tests
@osvegn osvegn linked a pull request Nov 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Communication protocol All things relative to the communication protocol Feature New feature to implement Mandatory protocol This protocol is mandatory
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant