Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Sandbox

Post History

60%
+1 −0
#9: Post edited by user avatar trichoplax‭ · 2023-07-06T13:33:43Z (10 months ago)
Add finalized tag now that the sandbox can be filtered to exclude tags
My house is destroyed! Can you make me one? [released]
# Background

I went on an adventure  
Grabbed resources and making deeds  
Like start to work on the materials  
To build the shelter I need

It was a marvelous one  
At least in the eyes of mine  
And when the sun sets  
I go inside

I went to sleep in comfort  
Hoping to show it to comrades  
Dreaming of dreams  
In the hours that pass

Next day I wake up  
I find myself in a pickle  
"My house is gone, oh dear!"  
Now I feel ill

I can't find a place to live  
Then there I find thou  
I have a simple request  
"Can you make me a house?"

As some time pass by  
You built such structure with potential  
When you said it's made of code  
You're who I'd call special

<div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>

**Moral of story: ¯\\\_(ツ)_/¯**

<sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>

# Challenge

Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!

# Test Cases (`#` for demo)

```none
Input: 3
Output:
###
# #
# #
```
```none
Input: 5
Output:
#####
#   #
#   #
#   #
#   #
```
```none
Input: 10
Output:
##########
#        #
#        #
#        #
#        #
#        #
#        #
#        #
#        #
#        #
```

# Example program in Python 3.x

<!-- language-all: lang-python -->

<pre><code>n = int(input())
for i in range(n):
&#9;print("#", end = '')
print("")
for i in range(n - 1):
&#9;print("#", end = '')
&#9;for j in range(n - 2):
&#9;&#9;print(" ", end = '')
&#9;print("#")
</code></pre>

[Try it online!][TIO-ksk0btwi]

[TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"

# Suggestions

- Any more tags before adding to the main category?
- Should I include the poem into the challenge?
- Anything still unclear, except the poem, obviously?
- What should I change?
#8: Post edited by user avatar General Sebast1an‭ · 2021-08-27T22:28:34Z (over 2 years ago)
  • My house is destroyed! Can you make me one? [in test (beta)]
  • My house is destroyed! Can you make me one? [released]
#7: Post edited by user avatar General Sebast1an‭ · 2021-08-26T22:47:34Z (over 2 years ago)
  • My house is destroyed! Can you make me one?
  • My house is destroyed! Can you make me one? [in test (beta)]
#6: Post edited by user avatar General Sebast1an‭ · 2021-08-24T01:01:38Z (over 2 years ago)
  • # Background
  • I went on an adventure
  • Grabbed resources and making deeds
  • Like start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • As some time pass by
  • You built such structure with potential
  • When you said it's made of code
  • You're who I'd call special
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • **Moral of story: ¯\\\_(ツ)_/¯**
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python 3.x
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
  • # Background
  • I went on an adventure
  • Grabbed resources and making deeds
  • Like start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • As some time pass by
  • You built such structure with potential
  • When you said it's made of code
  • You're who I'd call special
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • **Moral of story: ¯\\\_(ツ)_/¯**
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python 3.x
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
  • # Suggestions
  • - Any more tags before adding to the main category?
  • - Should I include the poem into the challenge?
  • - Anything still unclear, except the poem, obviously?
  • - What should I change?
#5: Post edited by user avatar General Sebast1an‭ · 2021-08-23T09:24:44Z (over 2 years ago)
  • # Background
  • I went on an adventure
  • Grabbed resources and making deeds
  • Like start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • As some time pass by
  • You built such structure with potential
  • When you said it's made of code
  • You're who I'd call special
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • **Moral of story: ¯\\\_(ツ)_/¯**
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
  • # Background
  • I went on an adventure
  • Grabbed resources and making deeds
  • Like start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • As some time pass by
  • You built such structure with potential
  • When you said it's made of code
  • You're who I'd call special
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • **Moral of story: ¯\\\_(ツ)_/¯**
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python 3.x
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
#4: Post edited by user avatar General Sebast1an‭ · 2021-08-21T01:24:21Z (over 2 years ago)
  • # Background
  • I went on an adventure
  • Grabbed resources I need
  • Start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
  • # Background
  • I went on an adventure
  • Grabbed resources and making deeds
  • Like start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • As some time pass by
  • You built such structure with potential
  • When you said it's made of code
  • You're who I'd call special
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • **Moral of story: ¯\\\_(ツ)_/¯**
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
#3: Post edited by user avatar General Sebast1an‭ · 2021-08-21T00:55:11Z (over 2 years ago)
  • # Background
  • I went on an adventure
  • Grabbed resources I need
  • Start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 7
  • Output:
  • #######
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
  • # Background
  • I went on an adventure
  • Grabbed resources I need
  • Start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 10
  • Output:
  • ##########
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
#2: Post edited by user avatar General Sebast1an‭ · 2021-08-20T07:07:52Z (over 2 years ago)
  • # Background
  • I went on an adventure
  • Grabbed resources I need
  • Start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number from 3-9, and make a house using the character of your choice. This is <a class="badge is-tag">kolmogorov-complexity</a>, so it's basically a string-printing challenge depending on the input.
  • Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 4
  • Output:
  • ####
  • ####
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • ## ##
  • #####
  • # #
  • # #
  • ```
  • ```none
  • Input: 6
  • Output:
  • ######
  • ## ##
  • ## ##
  • ######
  • # #
  • # #
  • ```
  • ```none
  • Input: 7
  • Output:
  • #######
  • # # #
  • #######
  • # # #
  • #######
  • # # #
  • # ####
  • ```
  • ```none
  • Input: 8
  • Output:
  • ########
  • # ## #
  • ##### #
  • # #####
  • # ## #
  • ##### #
  • # #####
  • # #####
  • ```
  • ```none
  • Input: 9
  • Output:
  • #########
  • # # #
  • #########
  • # # #
  • #########
  • # # #
  • #########
  • # # #
  • ##### #
  • ```
  • # Background
  • I went on an adventure
  • Grabbed resources I need
  • Start to work on the materials
  • To build the shelter I need
  • It was a marvelous one
  • At least in the eyes of mine
  • And when the sun sets
  • I go inside
  • I went to sleep in comfort
  • Hoping to show it to comrades
  • Dreaming of dreams
  • In the hours that pass
  • Next day I wake up
  • I find myself in a pickle
  • "My house is gone, oh dear!"
  • Now I feel ill
  • I can't find a place to live
  • Then there I find thou
  • I have a simple request
  • "Can you make me a house?"
  • <div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>
  • <sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>
  • # Challenge
  • Take input of a number that's $n > 2$ and use it to make a home for supposed character of the poem using the character of your choice. The building in use has a flat roof and walls. Shortest program wins!
  • # Test Cases (`#` for demo)
  • ```none
  • Input: 3
  • Output:
  • ###
  • # #
  • # #
  • ```
  • ```none
  • Input: 5
  • Output:
  • #####
  • # #
  • # #
  • # #
  • # #
  • ```
  • ```none
  • Input: 7
  • Output:
  • #######
  • # #
  • # #
  • # #
  • # #
  • # #
  • # #
  • ```
  • # Example program in Python
  • <!-- language-all: lang-python -->
  • <pre><code>n = int(input())
  • for i in range(n):
  • &#9;print("#", end = '')
  • print("")
  • for i in range(n - 1):
  • &#9;print("#", end = '')
  • &#9;for j in range(n - 2):
  • &#9;&#9;print(" ", end = '')
  • &#9;print("#")
  • </code></pre>
  • [Try it online!][TIO-ksk0btwi]
  • [TIO-ksk0btwi]: https://tio.run/##K6gsycjPM/7/P0/BViEzr0QjM6@gtERDU5MrLb9IIRMopFCUmJeeqpGnacXFWVAEUqKkrKSjkJqXAtShrq7JBRVUwtSioKtgiFMbJ0h1FqpqI5BqmHIFVOVwQzT//zcHAA "Python 3 – Try It Online"
#1: Initial revision by user avatar General Sebast1an‭ · 2021-08-20T06:34:24Z (over 2 years ago)
My house is destroyed! Can you make me one?
# Background

I went on an adventure  
Grabbed resources I need  
Start to work on the materials  
To build the shelter I need  

It was a marvelous one  
At least in the eyes of mine  
And when the sun sets  
I go inside

I went to sleep in comfort  
Hoping to show it to comrades  
Dreaming of dreams  
In the hours that pass

Next day I wake up  
I find myself in a pickle  
"My house is gone, oh dear!"  
Now I feel ill

I can't find a place to live  
Then there I find thou  
I have a simple request  
"Can you make me a house?"

<div style="text-align:right">- Poem by <a href="https://codegolf.codidact.com/users/54114">Mark Giraffe</a></div>

<sup>`I watched too much DDLC that I wrote a poem just for a challenge.`</sup>

# Challenge

Take input of a number from 3-9, and make a house using the character of your choice. This is <a class="badge is-tag">kolmogorov-complexity</a>, so it's basically a string-printing challenge depending on the input.

Shortest program wins!

# Test Cases (`#` for demo)

```none
Input: 3
Output:
###
# #
# #
```
```none
Input: 4
Output:
####
####
#  #
#  #
```
```none
Input: 5
Output:
#####
## ##
#####
#   #
#   #
```
```none
Input: 6
Output:
######
##  ##
##  ##
######
#    #
#    #
```
```none
Input: 7
Output:
#######
#  #  #
#######
#  #  #
#######
#  #  #
#  ####
```
```none
Input: 8
Output:
########
#  ##  #
#####  #
#  #####
#  ##  #
#####  #
#  #####
#  #####
```
```none
Input: 9
Output:
#########
#   #   #
#########
#   #   #
#########
#   #   #
#########
#   #   #
#####   #
```