This application is to assist a competitive-programmer while practicing on TOJ. This application downloads all the sample test cases for a problem and runs a user's solution program on all these test cases so that no time is wasted on manual checking of the solution and then directly submits the solution to TOJ without leaving the editor.
For now the application is for C++ users only.
Make Sure you have read the Installation and Usage very very carefully.
- Linux (Tested on Ubuntu-14.04)
- Internet Connection (it should be working on terminal)
- Sublime Text-3
- To check Sublime is installed correctly
- Open a terminal window.
- Run "subl".
- If Sublime opens up, everything is perfect.
- To check Sublime is installed correctly
- A default browser
- Working g++
- To check g++ is working
- Open a terminal window.
- Run "g++".
- If it identifies the command, everything is perfect.
- To check g++ is working
- Python libraries
- mechanize
- bs4 (BeautifulSoup)
- Make sure you have Python and all the dependencies installed (Mentioned in Requisites).
- Download the files and extract.
- sudo ./install will install the plugin.
- Change the Build System (Tools -> Build System) to TOJHelper.
- GoTo TOJHelper -> JudgeId & LanguageId and set your JudgeId and LanguageId.
- If you are working behind proxy, goto TOJHelper -> Proxy and set the proxy.
- After the installation, you should see a new menu in the menu bar, Buggy.
- Click on the Buggy menu and you'll be able to see all the options there.
- If you are not able to see all the options, "Tools -> Build System" and select CF.
- Make sure the name of the file is same as the question number. Example : 1234.cpp
- Make sure Sublime Side-Bar is visible (View -> Side Bar -> Show Side Bar).
- To start parsing the test-cases, (TOJHelper -> Start).
- For parsing the test-cases, provide the question number.
- Compile the code before running it on test-cases (Ctrl+B or TOJHelper -> Compile)
- To Run the code (TOJHelper -> Run -> Batch Test / Custom Test)
- If you want you can change the key-bindings too.
- If you are working behind proxy, goto TOJHelper -> Proxy and set the proxy.
- Python modules mechanize and BeautifulSoup.
For Hugs and Bugs drop a mail at asimkprasad@gmail.com