Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

/prog/ Challenge: HP Bar

Name: Anonymous 2018-02-22 8:36

Little Nicholas wants to make a game. Unfortunately, he is stumped by the problem of displaying player's current hit points! Help him so he can finish his's game.

Input: An integer in range \([0, 100]\) representing player's current life points.

Output: A /prog/snake representing the value. The HP ranges and the faces are as follows:
――――――――――――――――――
\((70, 100]\)

_ ___.....___
`.__ ,-' ,-.`-,
`''-------' ( p ) `._
`-' (
\
. \
\---..,--'
................._ --...--,
`-.._ _.-'
`'-----''

――――――――――――――――――
\((30, 70]\)

_ ___.....___
`.__ ,-' ,-.`-,
`''-------' ( p ) `._
`-' (
\
\
.---..,--'
................._ |--...--,
`-.._ _.-'
`'-----''

――――――――――――――――――
\((0, 30]\)

_ ___.....___
`.__ ,-' .-' \
`''-------' / o ) `._
`-' (
\

______
................._ .-'' /
`-.._ _.-'
`'-----''

――――――――――――――――――
\(0\)

_ ___.....___
`.__ ,-' ,-.`-,
`''-------' ( x ) `._
`-' (
\
\
---..,--'
................._ /--...--,
`-.._ ` _.-'
`'-----''



Notes:
  • Trailing white space is allowed
  • Standard input and output is preferred but any reasonable format is allowed
  • Deadline is 1 December 2025 14 March 2018

Name: Mentifex 2018-02-22 9:25

Name: Anonymous 2018-02-22 9:30

>>2
Has the AI been solved?

Name: Anonymous 2018-02-22 10:50

finish youre're are gaem nicholas

Name: Anonymous 2018-02-22 15:13

>>2
I don't understand this. Care to explain a bit?

Name: Anonymous 2018-02-22 18:49

Isn't this too trivial? It's just a read and a switch.

Name: Anonymous 2018-02-22 18:59

>>6
not if you want to minimize the programme length

Name: Anonymous 2018-02-22 19:20

>>7
programme
Yannick fils de pute

Name: Anonymous 2018-02-22 21:18

>>8
my name is Koen you swine

Name: Anonymous 2018-02-23 0:06

>>9
Koen fils de pute

Name: Anonymous 2018-02-23 10:05

Get the fuck off my board you dirty Mexicans

Don't change these.
Name: Email:
Entire Thread Thread List