Basic ruby connect four game for playing with friends.
To run this Ruby program in VSCode, you'll need to follow these steps:
-
Open the
connect-four
repository in VSCode. You can do this by opening VSCode, selecting "File" > "Open Folder" from the top menu bar, and then selecting theconnect-four
folder from your computer. -
Install the Ruby extension for VSCode if you haven't already. You can do this by opening the Extensions panel on the left-hand side of the editor, searching for "Ruby", and then installing the extension.
-
Make sure that Ruby is installed on your computer. If you haven't installed it yet, you can download it from the official Ruby website
-
Once you have Ruby installed, you can run your program from the terminal. To do this, open a new terminal window in VSCode by selecting "Terminal" > "New Terminal" from the top menu bar.
-
In the terminal you opened inside of you connect-four forked repository, run the program using the
ruby
command followed by the name of the file. In this case, it you would run the following command:
ruby four.rb
- Your program should now run and prompt you to select the column for your first move. You will alternate between yourself, and another player of your choosing!
Have fun! Let me know if you have any further questions.