Skip to content
Snippets Groups Projects
Commit 9b597a6b authored by Yousra Hassan's avatar Yousra Hassan
Browse files

canal change

parent 1f737793
No related branches found
No related tags found
1 merge request!14Merge v2
......@@ -277,6 +277,7 @@ func (ag *Agent) MoveAgent() {
reqToBlockingAgent = NewRequest(blockingAgentID, 3)
ag.env.agentsChan[blockingAgentID] <- *reqToBlockingAgent
//Faire le moment ou blocking agent recoit qqchose sur son canal
//BlockingAgent cherche si autour de lui c'est vide
possible, or := IsMovementSafe(blockingAgent.path, blockingAgent, blockingAgent.env)
if !possible {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment