Programming Exercise #7: Quine
Hello all, and welcome to the return of Programming Exercises! If people still like this, maybe I'll do more.
Your mission, should you choose to accept it, is to write a quine. What is a quine you might ask? Well, a quine is a bit of self-replicating code. In particular, it is a code that produces its own source code as its only output. Write as short a quine as you can! This is unlike any previous exercise, but you may also want to take a look at exercises #1, #2, #3, #4, #5, and #6 for previous discussions or for fun. e: Now open for suggestions for the difficulty of PE#8. |
PHP Code:
|
Quote:
Let's try to avoid joining classes, using public functions, and using file I/O. The script should be self-contained and independent of filename and other files. |
urgh, i can only come up with infinite-code :(
Edit: could just post it here for others to see~ PHP Code:
|
PHP Code:
|
Don't get this at all.. you should make programming exercises for people who are at a more average level. x_x
|
Quote:
|
which helps out the graal community in so many ways!! o_o
|
It helps polish the experienced scripters skills.
|
So by not posting anything, everyone completed the exercise in a way? ez
|
Quote:
Quote:
|
Probably the most awkward approach possible.
PHP Code:
|
Quote:
|
Quote:
I.e: Reads level links, leaves a mark, moves on to the new levels, and dies upon entering a marked level while wreaking whatever havoc using any side functions it has. The script should be able to remain in the level, and if re-uploaded the replication process begins again. The newer scripters could at least attempt the exercises, and maybe even do research of their own before giving up. |
Think of it as a scripters puzzle game. They do it for fun.
|
All times are GMT +2. The time now is 12:28 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.