Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hole Idea: Turtle #622

Open
scpchicken opened this issue Mar 15, 2022 · 6 comments
Open

Hole Idea: Turtle #622

scpchicken opened this issue Mar 15, 2022 · 6 comments
Labels
hole-idea An idea for a new hole. idea

Comments

@scpchicken
Copy link
Contributor

scpchicken commented Mar 15, 2022

you are a turtle and you must draw a path. there will be 1 input that consists of multiple lines. for example take the following input

5 N
3 W
2 S
7 E

you would output

oooo    
o  o    
oooooooo
   o    
   o    
   o    

as you start going up then left then down and right to intersect the previous path.
it could be more difficult if maybe you put an S at the start and E at the end or use 🏁 for start, 🐢 for end, ⬜ for path and, 🟩 for empty if you want to use unicode (if you end up at the start, you output the turtle but not the flag)

⬜⬜⬜⬜🟩🟩🟩🟩
⬜🟩🟩⬜🟩🟩🟩🟩
⬜⬜⬜⬜⬜⬜⬜🐢
🟩🟩🟩⬜🟩🟩🟩🟩
🟩🟩🟩⬜🟩🟩🟩🟩
🟩🟩🟩🏁🟩🟩🟩🟩
@JRaspass JRaspass added the idea label Mar 15, 2022
@MichalMarsalek
Copy link
Collaborator

I like this but I feel like unicode doesn't add much to this.

Also, an alternative instruction set (go forward, rotate left, rotate right) might be worth considering.

@SirBogman
Copy link
Contributor

This is a minor point, but the use of 🏁 for the start confused me. A checkered flag represents the end of a race in motorsports and a green flag (or green light) is used at the start of it.

@MichalMarsalek MichalMarsalek added the hole-idea An idea for a new hole. label Mar 23, 2022
@canissimia
Copy link

It could be better to guarantee that the start and end locations don't coincide. The current setup invites luck-based solutions, as the start and end cells either overlap or don't on any given run, so users can choose one and submit until it passes.

@csmit195
Copy link

csmit195 commented Jul 7, 2022

I liked it, was a bit on the easier side compared to others, so I second the rotating suggestion. Ive attached my attempt at it below, there's a lot I could have done better, specifically with my movement, but overall it works great.

My submission for lua:
https://gist.github.com/csmit195/45f6c4f4b12a159c6712739fbf148ce4

@stefangimmillaro
Copy link
Contributor

i like it but i think the recommendations should be considered before shipping

@kg583
Copy link
Contributor

kg583 commented Feb 27, 2023

I like this but I feel like unicode doesn't add much to this.

Also, an alternative instruction set (go forward, rotate left, rotate right) might be worth considering.

Second both of these; on my device, the green and white squares do not have the same width, leading to a very unclean and unreadable output. Furthermore, the size of the characters and the size of the entire board leads to horizontal compression in the diff, making debugging more challenging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hole-idea An idea for a new hole. idea
Projects
None yet
Development

No branches or pull requests

8 participants