Skip to content

Problem test-case parser for sublime text from various online judges. Depends on Competitive Companion and FastOlympicCoding.

Notifications You must be signed in to change notification settings

GabrielxDuO/FastOlympicCodingHook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

FastOlympicCodingHook

Problem test-case parser for sublime text from various online judges. Depends on Competitive Companion and FastOlympicCoding.

Setup

  • Make sure you have python3, FastOlympicCoding and Competitive Companion installed.
  • Add 12345 in the list of ports of competitive-companion browser extension.
  • Clone the repository inside your Sublime Text Packages folder and rename the cloned folder to FastOlympicCodingHook. You can do a quick google search to locate that folder for your particular OS or you can click the "Browse Packages" option in Sublime Text (if you find it) and the folder will open itself.
  • Configure the relative directory and file suffix for test cases files in the FastOlympicCoding settings (FastOlympicCoding.sublime-settings, After making changes to this file, remember to restart Sublime Text to ensure that this plugin fetches the latest configuration.), or keep the default values ("tests_relative_dir": "") while ensuring that "tests_file_suffix" is not empty to prevent overwriting your code file.

Usage

  1. Navigate to the file that you'll solve the problem in. Then right click anywhere in the file. You should find an option named Listen to Competitive Companion. Click on it.
  2. In the browser, navigate to the problem page and click on the competitive-companion extension's green plus icon.

The problem's test cases and correct answers will now be parsed and stored in tests_relative_dir within the parent directory of your code file, using the filename tests_file_suffix appended to your code file name. You might not immediately see the change in test cases inside sublime text. But if you run your code using FastOlympicCoding plugin (ctrl+B), then it'll you show those updated test cases and run your code against them.

To see a walkthrough of the setup process, you can watch this video:

Setup walkthrough

About

Problem test-case parser for sublime text from various online judges. Depends on Competitive Companion and FastOlympicCoding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%