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 »
Challenges

Post History

71%
+3 −0
Challenges Display a Progress Bar

Vyxal 3, 26 bytes ÷50×.5+:'|×'[p$50$-'-×']W“ Vyxal It Online! ÷50×.5+:'|×'[p$50$-'-×']W“­⁡​‎‎⁡⁠⁡‏⁠‎⁡⁠⁢‏⁠‎⁡⁠⁣‏⁠‎⁡⁠⁤‏⁠‎⁡⁠⁢⁡‏⁠‎⁡⁠⁢⁢‏⁠‎⁡⁠⁢⁣‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢⁤‏‏​⁡⁠⁡‌⁣​‎...

posted 6d ago by Themoonisacheese‭

Answer
#1: Initial revision by user avatar Themoonisacheese‭ · 2024-11-08T15:59:36Z (6 days ago)
# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 26 bytes

```
÷50×.5+:'|×'[p$50$-'-×']W“
```

[Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAACqtWSssvyk0sUbIy1lHKSE1MSS1SslJSVjY1ODxdvUalQklHKTk_JRUodng7SEzPVNtKvQYoF12gYmqgoquuC2THhj9qmANUmZafXwLWD2LnJKYXK1lFx-ooZeYVlJaA2NFKhvpGSjrRSkBCyVApNlYHJGIMEjFGEjHSNzUDiYFIIA8oCjSkLLWoODM_D2i4sZ6JnqGBUi0A5f6P1LsAAAA)

```
÷50×.5+:'|×'[p$50$-'-×']W“­⁡​‎‎⁡⁠⁡‏⁠‎⁡⁠⁢‏⁠‎⁡⁠⁣‏⁠‎⁡⁠⁤‏⁠‎⁡⁠⁢⁡‏⁠‎⁡⁠⁢⁢‏⁠‎⁡⁠⁢⁣‏‏​⁡⁠⁡‌⁢​‎‎⁡⁠⁢⁤‏‏​⁡⁠⁡‌⁣​‎‎⁡⁠⁣⁡‏⁠‎⁡⁠⁣⁢‏⁠‎⁡⁠⁣⁣‏⁠‏​⁡⁠⁡‌⁤​‎‎⁡⁠⁣⁤‏⁠‎⁡⁠⁤⁡‏⁠‎⁡⁠⁤⁢‏‏​⁡⁠⁡‌⁢⁡​‎‎⁡⁠⁤⁣‏⁠‎⁡⁠⁤⁤‏⁠‎⁡⁠⁢⁡⁡‏⁠‎⁡⁠⁢⁡⁢‏⁠‎⁡⁠⁢⁡⁣‏‏​⁡⁠⁡‌⁢⁢​‎‎⁡⁠⁢⁡⁤‏⁠‎⁡⁠⁢⁢⁡‏⁠‎⁡⁠⁢⁢⁢‏⁠⁠‏​⁡⁠⁡‌⁢⁣​‎‎⁡⁠⁢⁢⁣‏⁠‎⁡⁠⁢⁢⁤‏‏​⁡⁠⁡‌⁢⁤​‎‏​⁢⁠⁡‌⁣⁡​‎‎⁡⁠⁢⁣⁡‏⁠‎⁡⁠⁢⁣⁢‏‏​⁡⁠⁡‌­
÷50×.5+                     # ‎⁡compute (50xratio)+0.5
       :                    # ‎⁢push it twice
        '|×                 # ‎⁣"|" that many times
           '[p              # ‎⁤prepend "["
              $50$-         # ‎⁢⁡retrieve the second copy of the number, and substract it from 50
                   '-×      # ‎⁢⁢"-" that many times
                      ']    # ‎⁢⁣"]" literal
# ‎⁢⁤stack is now ["[||..."] ["--..."] ["]"]
                        W“  # ‎⁣⁡wrap the entire stack in an array and join it on nothing, yielding the correct string
💎
```
Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).