IntelliJ IDEA Code Golf Plugin

Hello, where I can find out the best solution to tasks for IntelliJ Code Golf Plugin?
Plugin only shows:
Task is solved
Your result is 20. The best result is 2.
The details about the task can be found here
Try again if you want to improve your solution.

For example task HelloWorld

Initial code:

public class HelloWorld {

}

Target code:
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}


psvm
sout
typing Hello, world!

Result only 20 :( How to solve this task with result 2?:)

3 comments

Hello, Oleg,

there is no way to view the best solutions. In fact all these solutions
by 2 keystrokes use a kind of cheat (a custom live template prepared
specifically for this task). Unfortunately there is no easy way to
prevent such kind of cheating, so we need to remove cheating solutions
manually.

However 20 isn't the best score, this task can be solved in 15
keystrokes without any cheats.

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

0

Hello, Oleg,

there is no way to view the best solutions. In fact all these solutions
by 2 keystrokes use a kind of cheat (a custom live template prepared
specifically for this task). Unfortunately there is no easy way to
prevent such kind of cheating, so we need to remove cheating solutions
manually.

However 20 isn't the best score, this task can be solved in 15
keystrokes without any cheats.

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

Nikolay, I watched your video at YouTube http://youtu.be/tpv5n2jWHlw but didn't find a way to solve this task in 15 keystrokes =)  what should we read or watch before solving tasks http://confluence.jetbrains.com/display/IntelliJIDEA/Quick+Start ?)
Anyway thank you for such great plugin.

0

It's impossible to tell about all IDEA features in 30 minutes.
Hint: look closer at Code | Completion menu.

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.