AtCoderFriends
Description
AtCoderFriends automates tasks about AtCoder programming contest such as:
- Download example input/output
- Generate source skeleton
- Run test cases
- Submit code
Dependencies
- Ruby 2.3 or newer
- Mechanize
Installation
See Development.
Configuration
Create .at_coder_friends.yml and place it in the working directory (or parent of working directory).
user: <user>
password: <password>
Usage
Setup
at_coder_friends setup /path/to/contest
Creates contest folder, and generates example data and source skeletons into the folder.
Run first test case
at_coder_friends test-one /path/to/contest/source_file
Run all test cases
at_coder_friends test-all /path/to/contest/source_file
Submit code
at_coder_friends submit /path/to/contest/source_file
Naming Convention
- Contest folder name will be used in the contest site URL.
For example, ifarc001folder is specified, AtCoderFriends will usearc001.contest.atcoder.jp. - Source file should be named
[problem ID].[language specific extension](e.g.A.rb),
in order to let AtCoderFriends find test cases or fill the submission form. - Suffixes (start with underscore) may be added to the file name (e.g.
A_v2.rb),
so that you can try multiple codes for one problem.
Notes
- Compilation is not supported.
- Source generator and test runner supports only ruby and C++.
For Sublime Text User
It is convenient to use AtCoderFriends from Sublime Text plugin.
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nejiko96/at_coder_friends. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the AtCoderFriends project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.