Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----.------------.---.<<.>+++++++.>++++.+++++++++++++++++.<+++++++++++++++++++++.>--------.<+++.<.>>++++.---.<<.>----------------.>-----------.---.<<.>-.>+++++++.---.++++.--------.++++++++++++++.<<.>++++++++.---------.-------------.++++++++.------------.++++++++++++++++++.+.---------------.+++++++++++++.-------------.-.>----------------------.[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++.>---.+++.+.<<++.>>---.+++++++++++++++++++++++.<<.>+++++++.-.-----------------.+++++++++++++++++++++++.-----.--.---.>[-]<[-]<[-]<[-]<++++++++++..[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>---.>+++++++++++.-.++++++.--.---.---.+++++++.<---------.<++.++++++++.>>++.--.--------------.<<--------.>+++++++++.--.+++++++++++++++.+++.<+++++++++.>>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-----.<++.+++++++++++++.-------------.>.>++++++++++++++++..-------------------.++.++++++++.<<.>++++++++++++++++++.>+.---.++++.--------.<<.>------------------.>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>----.<++.+++++++++++++.-------------.>-.>++++++++++++++++..-------------------.++.++++++++.<<.>++++++++++++++++++.>+.---.++++.--------.<<.>-----------------.>[-]<[-]<[-]<[-]<++++++++++.[-]++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>---.<++.+++++++++++++.-------------.>>---------------.++++++++++++++++++++++++++++++.--------------.<<.>+++++.>.----.+++++++++++.++++++++.------------.<<.>++++++++.>+++++++.------.+++++++++++.-----.-.[-]<[-]<[-]<[-]<++++++++++..[-]
- ## Beginning text
- ->+>>>++++++++>>>++++>>>++++>>>++>++ ##preset vals (life and pots)
- +[-<+]-> ##goto game flag
- [##game loop
- ####################################
- # D I S P L A Y I N F O #
- ####################################
- ##Eidex HP
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++.[-] ##CR
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<+++++++++.>>-----.<<-------.>+++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Eidex's HP:
- +[-<+]->>>>##goto Eidex HP
- >+++++ +++
- [-<+++++ +>]<. ##output AND conversion from number to ASCII
- >+++++ +++
- [-<----- ->] ##conv back to number
- ++++++++++.[-]
- ##Slime A HP
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>------------------.<+++++++.>>++++++++++++++.<<-------.>+++++++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Slime A's HP:
- +[-<+]->>>>>>>##goto Slime A HP
- >+++++ +++
- [-<+++++ +>]<. ##output AND conversion from number to ASCII
- >+++++ +++
- [-<----- ->] ##conv back to number
- ++++++++++.[-]
- ##Slime B HP
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>-----------------.<+++++++.>>++++++++++++++.<<-------.>++++++.++++++++.----------------------.<.>>[-]<[-]<[-]<[-] ##Slime B's HP:
- +[-<+]->>>>>>>>>>##goto Slime B HP
- >+++++ +++
- [-<+++++ +>]<. ##output AND conversion from number to ASCII
- >+++++ +++
- [-<----- ->] ##conv back to number
- ++++++++++.[-]
- ##Potion Count
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++.>+.----.+++++++++++.++++++++.------------.<<++.>++++++++.>+++++++.+++++.-----------.++++++.-.+++++.<----------------------.<.>>[-]<[-]<[-]<[-] ##Health Potions:
- +[-<+]->>>>>>>>>>>>>>
- >+++++ +++
- [-<+++++ +>]<. ##output AND conversion from number to ASCII
- >+++++ +++
- [-<----- ->] ##conv back to number
- ++++++++++.[-]
- ####################################
- # U S E R I N P U T #
- ####################################
- +[-<+]->
- >,
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++.[-]
- <<<<< <<<<< <<<<< <<<<<
- >++++++[-<----- ----- ->]<++
- ##goto selected slot AND copy value to next cell
- ->+<[->+<[[-]>+<>>>]>>>]>>>>>
- >[#pot_begin
- -<- ## decrement potions
- >>>>> >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>---.--.--------------.++++++++++++++.<<.>>------------------.<<.>>+++++++++++++++.-.+++++.-----------.++++++.-.<<.>>-------------------.<<+++++++++++.++++++++.-------------------.>+++.++++++++.>++.[-]<[-]<[-]<[-]< ##use a potion
- ++++++++++.[-] ##CR
- <<<<< <<<<< <<<<< <<<<< <<<<<
- +[-<+]->>>>+++ ## add 3HP
- +[-<+]->>>>> >>>>> >>>>> [-]+ ##set flag to used potion
- <<< ##goto a zero cell
- ]#pot_end
- ##goto pot flag
- +[-<+]->>>>> >>>>> >>>>>
- -[+##we didn't use a potion
- +[-<+]->>>##goto copy input
- -[->>>]>>>> ##goto selected Slime
- - ##remove 1HP
- >>>>> >>>>> >>>>> >>>>> ##goto a zero cell
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>-----------------------.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<.>>------------------.<<.>++++++++++++++.>+++++++++++.---.++++.--------.<<+.-.>++++++++.--------.>+++++++.---.++++.--------.<<.+++++++++++++.++++.-----------------.>-----------.++++++++.>--------.[-]<[-]<[-]<[-]<##attack a slime
- ++++++++++.[-] ##CR
- ]##attack_end
- #######################################
- # E N E M Y T U R N #
- #######################################
- +[-<+]-
- >>>>>>>
- [##Slime A
- +[-<+]->>>>- #remove 1HP
- > ##goto zero cell
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>------------------.<.>>----.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<+.-.>>------------------------.<<+++++++++++++.++++.-----------------.>+++++++.++++++++.>++.[-]<[-]<[-]<[-]<##Slime A attack
- ++++++++++.[-] ##CR
- ]##slimeA_end
- +[-<+]-
- >>>>>>>>>>
- [##Slime B
- +[-<+]->>>>- #remove 1HP
- > ##goto zero cell
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>+++++++++++++.>++++++++.---.++++.--------.<<++.>-----------------.<.>>----.+++++++++++++++++++..-------------------.++.++++++++.++++++++.<<+.-.>>------------------------.<<+++++++++++++.++++.-----------------.>++++++.++++++++.>++.[-]<[-]<[-]<[-]<##Slime B attack
- ++++++++++.[-] ##CR
- ]##slimeB_end
- ###########################################
- # C H E C K G A M E S T A T U S #
- ###########################################
- +[-<+]-
- >[-] ##set game flag to zero
- >>>>>>[<<<<<<+>]##check slime A
- +[-<+]->>>>>>>>>>[<<<<<<<<<+>]##check slime B
- +[-<+]->>>>[>+>]+[-<+]->>>>>-[+<<<<[-]]##check for Eidex
- +[-<+]-> ##goto game flag
- ]#game_end
- ################################
- # E N D M E S S A G E #
- ################################
- +[-<+]->>>>[>+>]<
- [##Eidex wins
- >>>>> >>>>> >>>>> >>>>>
- ++++++++++.[-] ##CR
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----------------.-------.++++++++++++++++++.<<.>>++++.--------.-.<<.>>++++++.------------.---.<<.>>---.-.+++++++++++++++++++..--------.-------.<<+.
- >>>>##goto a zero cell
- ]##winmsg_end
- +[-<+]->>>>>
- -[##Eidex loses
- >>>>> >>>>> >>>>> >>>>> >>>>>
- ++++++++++.[-] ##CR
- ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>-.>+++++.-----.+.+++++++++++++++++++.<<++.>>----------------.-------.++++++++++++++++++.<<.>>-------.+++.++++.+.<<.>>.------------.---.<<.>>---.-.+++++++++++++++++++..--------.-------.<<.>-----------.<++++++++.
- >>>>##goto a zero cell
- ]##losemsg_end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement