Skip to content

Ai#49

Merged
savalet merged 88 commits into
mainfrom
AI
Jun 23, 2026
Merged

Ai#49
savalet merged 88 commits into
mainfrom
AI

Conversation

@savalet

@savalet savalet commented Jun 23, 2026

Copy link
Copy Markdown
Member

No description provided.

No-Dre and others added 30 commits June 5, 2026 19:46
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
No-Dre and others added 29 commits June 23, 2026 14:38
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(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
@savalet savalet merged commit 497b053 into main Jun 23, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants