Game: v6.1
Python 3.11 and the following dependencies:
# AI Module
uvicorn
fastapi
pyftg
pydantic
# Twitch Module
twitchio==2.8.2
python-dotenv==1.0.0
httpx==0.25.1
requests
python-dotenv
cd AIModule
python game_server.py
In the game, Player should show DemoAI_2 (Visual AI)
cd AIModule
python command_server.py
cd AIModule
python view.py --json_path <path_to_game_stat_file>
TwitchAPI
folder, configure the bot by copying .env.example
to .env
. Then, modify the .env
file using your credentials.TwitchAPI/config.py
, set STATUS_JSON_ADDRESS
to the path specified in step 5.cd TwitchAPI
python main.py
{
game_id: string,
start: bool,
}
{
player_1:
{
actions: [action_1, ..., action_n]
},
player_2:
{
actions: [action_1, ..., action_n]
}
}
{
game_status: string,
character_1:
{
hp: float,
energy: float
},
character_2:
{
hp:float,
energy: float
}
}
Twitch server received Game status message and perform betting logic.