diff --git a/challenges/00-tilde/desc.html b/challenges/00-tilde/desc.html new file mode 100644 index 0000000..75ff9b5 --- /dev/null +++ b/challenges/00-tilde/desc.html @@ -0,0 +1,25 @@ +
hi, and welcome to the first ~town golf challenge!
+in case you're not familiar with code golf - your task is to create the smallest +program you can to perform a specific task. here's a more detailed +explaination, including instructions on how to submitting your solution
+for now we'll keep it simple: your program has to print the ascii art tilde +(pictured below) on stdin, without outputting anything else. you don't have to +print the trailing spaces, and you may use any non-whitespace characters instead +of ▉. have fun!
++ ▉▉ + ▉▉ + ▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ + ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ +▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ +▉▉▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ +▉▉▉▉▉▉ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ +▉▉▉▉ +▉▉ +▉▉diff --git a/gather.rb b/gather.rb index c55cddc..d7256d8 100755 --- a/gather.rb +++ b/gather.rb @@ -18,6 +18,7 @@ def submissions(event) end def challenge_page(event) + `mkdir -p #{$LOCAL_BASE}/#{event}/` file = File.new("#{$LOCAL_BASE}/#{event}/index.html", 'w') file.write $HTML_HEAD diff --git a/how.html b/how.html index c9a97fa..72ced2f 100644 --- a/how.html +++ b/how.html @@ -1,2 +1,19 @@ -
TODO
++in short: put your file in ~/golf/[challenge_name]/. ensure that it's +executable (chmod +x your_file) and that it has a shebang +
+shebangs are those lines at the beginning of scripts that look like
+#!/this
. they contain the path to the interpreter for the language
+that you're using, so people can launch them easily. some examples are:
+
whereis
+command. if you want to use a compiled language, such as C, you have to use a
+wrapper script. here are the ones that i know of:
+