Conversation
this ai only seeks out nearby food to survive, nothing else.
Add a network class to connect to the server
Fix the typos in error messages
Remove duplicate "host" variable already handled with "machine"
feat(AI/communication): Add crypt and decrypt function with unit test
Overhaul the network object to use asyncio instead of nonblocking sockets. It now allows easy nonblocking read and write functions, and a dedicated cleanup function.
Combines the read_stream and bg_reader tasks into one, as splitting both of them is unnecessary
Add blocking read and write calls to the network object
Remove debug prints from the object
feat(ai/network): add network object to handle communication with server
Update the simple ai to use the new network object as well as some bug fixes
feat(ai/simple ai): add first working ai with simple greedy algorithm
move all const variables into the file const.py
Combines the read_stream and bg_reader tasks into one, as splitting both of them is unnecessary
Add blocking read and write calls to the network object
Remove debug prints from the object
feat(AI/communication): Add crypt and decrypt function with unit test
add missing exception handling for both nowait methods (respectively QueueFull and QueueEmpty for write and read), and remove the team variable from the object as it is not coherent to be owned
Update the simple ai to use the new network object as well as some bug fixes
feat(ai/network): add network object to handle communication with server
migrate all functions and variables from snake case to camel case. also, switches iqueue and oqueue, as writing to input is confusing
feat(ai/simple ai): add first working ai with simple greedy algorithm
add read and send functions with a timeout to complete tasks
add a taskgroup to the network object. it will usually be the task group in which it is running. useful if cloning is needed (like in our use case)
fix(network): queue exception fixes and name updates
add dockerfile to be able to use python3.13 while running the client
feat(network): taskgroup
feat(ai network): docker deployment and logging
Change the way crypt works using xor instead of a caesar code equivalent as to avoid collisions
Update tests to use the new crypting system
Ai anthill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.