Challenge
Given a size s, print a cube net of that size made of hash symbols (#
) and spaces ().
Examples:
1:
#
# # #
#
#
2:
# #
# #
# # # # # #
# # # # # #
# #
# #
# #
# #
3:
# # #
# # #
# # #
# # # # # # # # #
# # # # # # # # #
# # # # # # # # #
# # #
# # #
# # #
# # #
# # #
# # #
The net can actually be any valid cube net that can fold into a cube, for example these:
# #
# #
# # # # # # # #
# # # # # # # #
# #
# #
# # # #
# # # #
# #
# #
# #
# #
# # # #
# # # #
Rules
- The resulting net must be geometrically valid (foldable into a cube)
- Standard loopholes forbidden
- Read the rules carefully
- This is code-golf, shortest answer wins, but will not be selected