AtCoderFriends automates tasks about AtCoder programming contest such as:
- Download example input/output
- Generate source skeleton
- Run test cases
- Submit code
- Ruby 2.7 or newer
- Mechanize
Add this line to your application's Gemfile:
gem 'at_coder_friends'
And then execute:
$ bundle
Or install it yourself as:
$ gem install at_coder_friends
at_coder_friends setup /path/to/contest
Creates contest folder, and generates example data and source skeletons into the folder.
at_coder_friends open-contest /path/to/contest/source_file
Opens the contet page which the contest folder linked to.
at_coder_friends test-one /path/to/contest/source_file
at_coder_friends test-all /path/to/contest/source_file
at_coder_friends submit /path/to/contest/source_file
at_coder_friends check-and-go /path/to/contest/source_file
- Contest folder name will be used in the contest site URL.
For example, if
arc001
folder is specified, AtCoderFriends will usehttps://atcoder.jp/contests/arc001/
. - 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.
- Compilation is not supported.
- Source generator supports Ruby, C/C++, C# and Java, and can be added by plugin or template.
- Test runner and code submission are supported in 36 languages.
See Wiki for details.
See Wiki for details.
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
.
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.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the AtCoderFriends project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.