*** How to PLAY[Video]
🌔*** Test Case Explain[Video] (Further explain test mod)
Game Set-Up(GUI Version/ CMDLine Version)
Our Set program runs on Linux running Ruby 3.0.1 and requires FXRuby(GUI version).
- Run the program with command-line version: (basic functions)
$ No longer available
- Run the program with GUI: (TEST CASES, extra functions such as hint, timer, difficulty…)
(1) Install dependencies:
$ sudo apt-get install g++ libxrandr-dev libfox-1.6-dev
$ bundle install
(2) Run the program:
$ bundle exec ruby main.rb
Q&A How could I install Bundler before install dependencies?
http://web.cse.ohio-state.edu/~sivilotti.1/teaching/current/3901/labs/gems.html
GUI Version
For the GUI version, after installing the Bundler and gem package shown above, enter `bundle exec ruby main.rb` to run the program. A new window of the game will appear, together with a scoreboard, a timer, and some other useful information about the game. Choose the difficulty or test the game on the top-left corner of the window. Click the “Start” so that 12 (or more) cards will show up. If a set is found, click the “SET!” button first, then select the 3 cards. Or you may click the “Hint” button to get a hint of the set. The program will judge whether the cards chosen can form a set. The scoreboard will change according to the result. Pay attention to the time limitation! You can end the round in advance by clicking the “End” button. Click the “Start” button again if a new round is wanted. The max number of rounds is 5. You can exit the program by clicking the “Exit” button.
Test Mod in GUI
Test Mod(test cases mod) will help users learn about how this app run under specific/extreme situation, such as
- Load three more cards when there is no sets within the current 12 cards
- Exit properly after a user found all sets (no more new cards to load)
- For more test cases, please visit this doc page or see demo video: