This game runs on two containers that predict numbers using Python, RabbitMQ and Docker.
Container_A generates a number between 0 and 9 and adds it to the A_to_B queue. It also expects data from the B_to_A queue. If data comes from the queue, it makes 5 number predictions and if one of the predictions is correct, it gets 1 point.
Container_B generates a number between 0 and 9 and adds it to the B_to_A queue. It also expects data from the A_to_B queue. If data comes from the queue, it makes 5 number predictions and if one of the predictions is correct, it gets 1 point.
docker run -d --hostname my-rabbit --name myrabbit -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=123456 -p 5672:5672 -p 15672:15672 rabbitmq:3-management
cd Container A
docker build -t container_a
cd Container B
docker build -t container_b
docker run -it container_a
docker run -it container_b