मुझे उम्मीद है कि यह तस्वीर आपको परिचित लग रही है।
यह Pacman के भूतों में से एक है, जो अपनी "कमजोर" स्थिति में है , क्योंकि Pacman ने एक बिजली की गोली खाई है।
चुनौती
ASCII कला का उपयोग करते हुए, हमारे भूत को एक छोटे फ्रेम में चित्रित करें। सामान्य पैमाने पर (इसके बारे में अधिक बाद में), ऊपर की छवि में प्रत्येक वर्ग को एक वर्ण के अनुरूप होना चाहिए, और फ्रेम में एक-चरित्र को ऊपर और नीचे अलग करना चाहिए, और भूत के बाएं और दाएं को दो-वर्ण अलग करना चाहिए। :
####################
# #
# #### #
# ######## #
# ########## #
# ############ #
# ############ #
# ### ## ### #
# #### ## #### #
# ############## #
# ############## #
# ## ## ## ## #
# # ## ## ## # #
# ############## #
# ## ### ### ## #
# # ## ## # #
# #
####################
लेकिन यह बहुत सुंदर नहीं लगता है। #
सक्रिय पिक्सल के लिए सबसे अच्छा विकल्प नहीं हो सकता है। इसके अलावा, चरित्र कोशिकाएं वर्गाकार नहीं हैं, जो हमारे मित्र को पहले से ही अधिक भूतिया दिखती है।
तो, अधिक लचीलापन होने के लिए, तस्वीर तीन इनपुट मापदंडों के अनुसार बदल जाएगी:
- सक्रिय पिक्सल के लिए उपयोग किए जाने वाले चरित्र;
- क्षैतिज पैमाने का कारक;
- ऊर्ध्वाधर पैमाने का कारक।
उदाहरण के लिए, के साथ %
, 4
, 2
ouput बेहतर की तलाश में चित्र होगा
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% %%%%
%%%% %%%%
%%%% %%%%%%%%%%%%%%%% %%%%
%%%% %%%%%%%%%%%%%%%% %%%%
%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%
%%%% %%%%%%%%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%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%
%%%% %%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%% %%%%
%%%% %%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%% %%%%
%%%% %%%% %%%%%%%% %%%%%%%% %%%% %%%%
%%%% %%%% %%%%%%%% %%%%%%%% %%%% %%%%
%%%% %%%%
%%%% %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
नियम
सभी भवन निर्माण की अनुमति दी।
इनपुट को किसी भी उचित प्रारूप और किसी भी क्रम में लिया जाता है। ऊपर पहला इनपुट (सक्रिय पिक्सेल के लिए वर्ण) एक मुद्रण योग्य ASCII वर्ण (कोड 32 से 126) होने की गारंटी है।
प्रत्येक पंक्ति के बाद का स्थान या अंतिम पंक्ति के बाद की नई सीमा को अनुगामी स्थान स्वीकार्य है।
कोड गोल्फ, सबसे कम बाइट्स जीतता है।