Skip to content

Interact with game state [in progress]. The idea is to use it to train AI agent for Duel

License

Notifications You must be signed in to change notification settings

cainky/QuakeLiveInterface

QuakeLiveInterface

Quake Live Interface is a Python library designed to provide a programmatic interface to a Quake Live game server. The library's main components are:

  • ServerConnection: A class that manages the TCP/IP connection to the Quake Live server. It sends commands to the server and receives data packets from the server.

  • GameState: A class that parses the data packets from the server into a more accessible format. The game state includes information about the player's position, the positions of other entities, and other game state information.

  • QuakeLiveClient: A class that encapsulates the connection to the server and the interpretation of game state data. It provides an intuitive interface for users to interact with the game.

Installation

The project uses Poetry for package management.

$ poetry install

Usage

To create a connection to a Quake Live server:

from QuakeLiveInterface.connection import ServerConnection

connection = ServerConnection(server_ip, server_port)
connection.connect()

To send a command to the server:

connection.send_command("some_command")

To create a Quake Live client and interpret game state data:

from QuakeLiveInterface.client import QuakeLiveClient

client = QuakeLiveClient(server_ip, server_port)
client.connect()
game_state = client.get_game_state()

Testing

To run tests:

$ poetry run pytest

About

Interact with game state [in progress]. The idea is to use it to train AI agent for Duel

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages