https://github.com/panagiotisptr/codeforces-companion
A codeforces parser, code tester and testcase generator in Go
https://github.com/panagiotisptr/codeforces-companion
codeforces-parser competitions crawler go golang parser test-automation testing
Last synced: 5 months ago
JSON representation
A codeforces parser, code tester and testcase generator in Go
- Host: GitHub
- URL: https://github.com/panagiotisptr/codeforces-companion
- Owner: PanagiotisPtr
- License: mit
- Created: 2019-10-04T23:26:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T10:06:54.000Z (over 6 years ago)
- Last Synced: 2025-08-14T08:01:52.858Z (10 months ago)
- Topics: codeforces-parser, competitions, crawler, go, golang, parser, test-automation, testing
- Language: Go
- Homepage:
- Size: 6.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Codeforces Companion
This is a tool that allows you to get the testcases, problems (as pdfs) and initial setup for your language of choice for a codeforces competition. I might add more features over time like support for different languages.
## Highlights
Problems for competitions are downloaded concurrently using go-routines. The code is separated into modules each of which is responsible for 1 thing. There are a some unit tests to ensure that the code works. Also uses templates to set up your initial code file.
## Overview of the tools
When you build the code you have 3 tools. The competition parser (`cfc-parser`) that allows you to parse a competition. The code tester, only works with C++ currently (`cfc-tester`). For those two programs you can also use `--help` to find out how they work. The last thing is `cfc-mktest` which allows you to quickly handcraft a testcase. It doesn't have `--help` but instead when run, it asks for user input with a prompt.
## To build the code
Building the code is dead simple as it comes with a Makefile. Just do
```
make build
```
## Tests
I have written a few unit tests for this code but not that many. To run the tests for a package simply go to that package's folder and run `go test`