test your luck at this game of chance, as you try to out-guess the computer.
github: https://github.com/ThomasTheSpaceFox/maxapacer
was trying to find a way to use my terminal image system in a game, and i came up with the idea for this number guessing game.
.PET attached below.
I've attached a few screenshots so you can see what i mean by "terminal image"
images are drawn by 2 separate scripts (they are almost identical. one doesn't print the title. T-IMG.sh is the normal one. when the script needs to draw an image. it calls up the appropriate .TIMG image, by sending the full file name and path through standard input to T-IMG.sh (or its non-title printing counterpart.) T-IMG.sh draws the images by reading the image one line at a time, converting the line to a list and printing each color block, and overall each line, in sequence. Printing a new line at the end of each line. a bang "!" acts as an end of file instruction.
RULES:
The player (Purple) enters a number from 1-9. The computer (cyan)
also picks a number from 1-9. A pacer is chosen randomly.
also a number from 1-9.(Yellow). the closer a player is to the pacer
the lower that player's score. the player with the lowest score, wins.
Maxapacer
-
- Posts: 123
- Joined: Mon 26 Jan 2015, 20:38
- Location: Ohio
Maxapacer
- Attachments
-
- Maxapacer-v1.2.0.pet
- v1.2.0
- (17.24 KiB) Downloaded 161 times
-
- capture5537.png
- in-game
- (3.41 KiB) Downloaded 455 times
-
- capture24895.png
- title screen.
- (5.26 KiB) Downloaded 1098 times