The script to guide subjects through the 30 minute debbuging activity can be found here.
These instructions will help you in setting up the project and running the game on your local machine for development and testing.
brew install ruby
ruby -v
sudo apt-get install ruby-full
ruby -v
Download the installation file from https://www.ruby-lang.org/en/downloads/ Add the following lines to your c:\autoexec.bat: set PATH = "D:(ruby install directory)\bin;%PATH%"
ruby -v
brew install golang
Download the Linux distribution from Go’s official download page and extract it into /usr/local directory.
sudo tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
Next, add the /usr/local/go/bin directory to your PATH environment variable. You can do this by adding the following line to your ~/.bash_profile file -
export PATH=$PATH:/usr/local/go/bin
Download the Windows MSI installer file from Go’s official download page. Open the installer and follow the on-screen instructions to install Go in your windows system. By default, the installer installs Go in C:\Go
For setting GOPATH in bash shells, add the following line to the ~/.bash_profile file -
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
If you use Zsh shell, then you need to add the above line to ~/.zshrc file.
Copy the path of the seng-group-16-hw2
project folder. Now set the GOPATH
environment variable using the following instrustions:
- Right click on Start → click Control Panel → Select System and Security → click on System
- From the menu on the left, select the Advanced systems settings
- Click the Environment Variables button at the bottom
- Click New from the User variables section
- Type GOPATH into the Variable name field
- Paste the
seng-group-16-hw2
folder path into the Variable value field - Click OK
Note that, GOPATH must be different than the path of your Go installation.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version
cargo --version
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version
cargo --version
Setup Rust with the following executable file https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe
Once you open it, you’ll be met with the installer options. Type "Y" and let the installer do a set of downloads
Add the following to PATH in environment variables
Ensure that you have Visual C++ installed. If errors persist while running building, run the following executable file https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
%USERPROFILE%\.cargo\bin
Check the installation with the following
rustc --version
cargo --version
ruby gol.rb
cd Go/src
go run gol.go
cd Rust && cargo build
cd src
cargo test
cargo run
- Adithya Raghu Ganesh
- Meghana Ravindra Vasist
- Shivaprakash Balasubramanian
- Surbhi Jha
- Varsha Anantha Ramu Sharma
This project is licensed under the MIT License.