GithubHelp home page GithubHelp logo

rishabhltfb / codechef_automation_bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parikshithraju/codechef_automation_bot

0.0 1.0 0.0 11.14 MB

This is a bot used for downloading the test cases from CodeChef contests, Testing our code against given test cases, and submitting our code to the online judge all done in the command line.

Python 99.91% C++ 0.01% Shell 0.09%

codechef_automation_bot's Introduction

Use Case

This bot reduces the menial work that has to be done before and during the contests. And makes you more productive while doing contests.

How to install the bot:

  • First clone the repository into a directory of your choice.
  • To run this bot python3 is necessary. If you don't have python3 click this link to download
  • Navigate to the directory in which you cloned the repository and open the terminal in the same path.
  • run the command For windows users:
    pip install -r requirements.txt
    For mac or linux users:
    pip3 install -r requirements.txt

How to use it:

  • To participate in a contest:
  • Just run the setup.py file. It is a interactive program all the details needed will be prompted by the program.
  • The program will create a directory in the specifed directory and will create subDirectories for all the problems in a contest. The tree structure will be like.
  • The files in those directories are:
    • statment.txt: contains the problem statment.
    • given_input.dat: Contains the sample input of the problem.
    • given_output.dat: Contains the sample output of the problem.
    • sol.cpp: Contains a basic template in which you have to write the solution of the problem.
    • test.py: When you run this program your code will be tested against the sample input testcases.You can check your output in yourOut.dat file.(If you are a windows user check out the note below).
    • submit.py: When you run this program the code you wrote will be submitted to the online judge and the results will be printed on your terminal.
  • Now using this bot you can solve problems without having the hassle of doing all the jobs manually from the browser.

Commands for running:

In Windows:

python (filename)

In linux or macOS:

python3 (filename)

Note:

  • when you are running the test.py file it may not work in a windows system to make it work you have to install the g++ compiler checkout this link to see how to download and install g++ compiler.
  • The template.cpp file in your cloned repository. Is from where the sol.cpp files are copied if you want to use your own template instead of the default you can replace the template.cpp file with your own template code.

Screenshots:

Creating contest pics:

Testing solution pics:

Submitting solution pics:

Contact information:

Please conact me if you have any query regarding the usage or if you want to contribute to the code.
Email: [email protected]

codechef_automation_bot's People

Contributors

parikshithraju avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.