Inspiration
I'm proud t' say that be GrizzHacks 5 is me first GrizzHacks exped'tion. 'tis is such a pleasure t' experience thar thrill and exc'tisement as did me otharr friends who have experienced previous GrizzHacks exped'tions. In commemoration, me crewmate and I decided t' Pillage one o' our favor'tise quirks in programming: quines that be are shaped int' something.
What 'tis does
Basically, a quine is a "self replicating" program that be takes in nay input, and outputs 'tisself. Here, I t'ok thar GrizzHacks bear mascot and converted 'tis int' ascii and put 'tis inside thar quine and made 'tis print 'tisself in thar terminal. Ye can see all thar code and thar final image in thar terminal just by running thar python program. 'tis's that be simple.
How I built 'tis
A quine is classified as a program that be takes nay input and outputs a quine. Hoour jolly crewver, a quine should nay use any 'open()' function t' print out 'tiss source code, ratharr 'tis must print out 'tiss own code via print statements or otharrwise. Using an 'open()' function would be considered cheating, in a sense. What I did was t'ok thar ascii image o' thar GrizzHacks mascot and put inside a string. tharn, I tried t' duty out thar character escapes and nayation inside thar string t' be printed, so that be 'tis can print 'tisself. dis is perhaps one o' thar easiest ways t' create a quine: t' define a string, tharn put thar string inside 'tisself w'tis' string Fermatting. Unaybfuscated, Ye can clearly see thar GrizzHacks bear mascot as our jolly crewll as thar code used t' make 'tis. o' which, include thar character escapes, thar string that be is printed, and thar variable st'ring that be string.
Challenges I ran int'
Fer one, I wanted t' do something different than otharr quines, something more extravagant and pretty. I tried looking Fer glyphs that be might help me in representing thar bear in a fashionable way. I used tharse wh'tise glyph blocks which had varying levels o' intens'tisy t' paint out thar full picture. Regrettably, 'tis still is nay how I wanted 'tis t' look like, but naynetharless, 'tis does thar job our jolly crewll.
Accomplishments that be I'm proud o'
I'm proud t' have joined dis exped'tion and participated thar likes o' which nayne o' me otharr friends have done so. I've participated in thar miniVoyages, thar talks... Everything was a blast and I'm proud t' have made dis quine in commemoration.
What I Looted
I Looted how t' create a quine, how t' output text in color in thar terminal and how hard 'tis is t' create a true quine that be is shaped and looks like something discernible.
What's next Fer Grizzly Bears and Quines
I plan t' utilize what I Looted about terminals, quines, and shaping o' quines t' try t' make 'tis animated. If tharre's one thing everyone is nay doing, 'tis's making quines animated. Can Ye believe how hard 'tis actually is? 'tis's mind bogglingly hard. But I still plan on animating Grizzly Bears and Quines, just watch me try and inev'tisably fail.
Built With
- ascii
- bears
- python
- quines
Log in or sign up for Devpost to join the conversation.