GoogleCodeJamSharpDevelopAddin is an add-in for SharpDevelop IDE which allows you to create a template solution for problems from Google Code Jam contests.
- .NET Framework 4.0 or higher (or any compatible, like Mono 2.8+). Solution templates use Parallel LINQ in order to run several tests simultaneously.
- SharpDevelop 4.0 or higher.
- git
- Any ZIP packaging tool. Unfortunately, Windows doesn't built-in command line
zip
tool, so I didn't unclude packaging script into the project. You have to zip files by yourself (instructions below).
git clone git://github.com/DNNX/GoogleCodeJamSharpDevelopAddin.git
- Archive GoogleCodeJamSharpDevelopAddin directory into GoogleCodeJamSharpDevelopAddin.zip.
- Rename GoogleCodeJamSharpDevelopAddin.zip to GoogleCodeJamSharpDevelopAddin.sdaddin.
- Double-click GoogleCodeJamSharpDevelopAddin.sdaddin and confirm installation.
- Start SharpDevelop.
- Go to File -> Create New Project.
- Choose "Google Code Jam Solution Project" under C# / Windows Applications.
- Specify project name. I usually use name of a problem I'm going to solve.
- Click "Create".
New solution template will be created with unit tests. Now you ready to create a test based on sample input/output from the problem.
- Go to View -> Tools -> Unit Tests.
- In a new pad, click "Run all tests" button. Of cource, all the tests will be red.
Just open %PROBLEM_NAME%.cs file and override 2 methods: ReadTestCase and Solve. The first one reads/parses single test case from an input stream, the second one solves that case.
Copyright (c) 2011 Viktar Basharymau twitter.com/DNNX %w(viktar.basharymau gmail.com) * "@"
Released under the MIT license. See LICENSE file for details.