Using Ansible and Vagrant you can run many of the Queens programs in a Linux virtual machine, without needing to install all the different languages on your host machine.
You need to have this software installed to use Ansible with Vagrant:
Set up a Python3 virtual environment, following instructions in python.md.
Install the providers.
# vagrant plugin install vagrant-aws # fails on macOS
vagrant plugin install vagrant-azure # 2.0.0
vagrant plugin install vagrant-google # 2.5.0To create and provision the virtual machine with Vagrant, run this command:
vagrant upThe provisioning script downloads and installs a lot of different packages, and can take a while, depending on your internet connection speed.
Some HTTP downloads are not 100% reliable, so the script may fail. In case of a partial provision, or if you want to pick up changes to the provisioning script, re-run provisioning with this command:
vagrant provisionTo run any of the Queens programs in the virtual machine, we connect to the virtual machine using SSH. The project folder is shared in the virtual machine at /vagrant.
vagrant ssh
cd /vagrantFor example, to run using C:
clang/run.sh Queens 8 14To stop the virtual machine but leave it available to run again:
vagrant haltTo destroy the virtual machine and free up space:
vagrant destroyTo restart the virtual machine later:
vagrant upIf you stopped the virtual machine with vagrant halt, it should restart quite quickly. If you destroyed it, it needs to be provisioned all over again.