Skip to content

Commit

Permalink
Merge branch 'main' of github.com:intelygenz/codeconz-lighthouses-py-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
onizucraft committed Nov 14, 2024
2 parents ea1fd42 + bbed408 commit 09e87be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/build-push-github.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#######################################################
### example for Github Container Registry (ghcr.io)
### example for Docker Hub
###
### Your container image name will be:
### ghcr.io/<github-account>/<repo-name>:latest
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# codeconz-lighthouses-py-bot

This is a Python bot that can be used to play the game of Lighthouses on the CodeConz platform.

## Interaction flow with the Game Engine
![Interaction Flow](./docs/interaction_flow.png)

The bot interacts with the game engine in three steps:
1. **Join Game**: The bot sends a join request to the game engine to join the game. The game engine responds with the Bot ID.
2. **Get Initial State**: The game engine sends get the initial state of the game to the bots.
3. **Turn request**: The game engine requests the bot to make an action on each turn, and sends the current state to the bot. The bot responds with the action.

For more in depth information on the game, please refer to the [Game Engine documentation](https://github.com/intelygenz/codeconz-lighthouses-engine/blob/master/README.md).
Binary file added docs/interaction_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09e87be

Please sign in to comment.