Rust examples
Run console programs and terminal games, from a guest list to a dungeon crawler.
================================ Health: 7 / 10 ========------------------------
Explore the Dungeon. Cursor keys to move.;;;Dungeon Level: 1
Items carried ; ;;;;";;;;";;";"";
1 : Rusty Sword ;;;; ";;" "";;;;;;;"";;;
;";;;; ;;;""""";;;;;;;;;;"
;;;;;;"" ;; ";;"";;;;;;;;";;;""
;";;;;; ;"" ;;"""""";;;;;;;;;;;;;"";;""
";;;;;;"";"" ;;;;;";;;;"";;"";;;;;"";;;;"
";;;;;;;;;;"""";;;;;;;;;;;;;"""";;;;;;;;;;;;;
";;;;;;;;;;;;;;;";;;;;;;;;"" """";;;;;;"
";;;";;;;;;;;;""";;;;;;;;"" "";;;;;;;
";;;;;;";;;""";;;;"";;;;;"";" ";;;;;;"
";;;;@;;;" ";;;;;;;;";;"";;;" ;;;"";;
";;;;;;" ";;;;;;;""";"";;;;;" ;;;" ;;Better combatGame
================================ Health: 10 / 10 =============================== ;;";;;""";;;;"";;;;;Explore the Dungeon. Cursor keys to move.;"""";";";;;; ;;;;;;""";;;;;;;;";;"";;;";;;"""";;;"";;;;;;;;;;;;;;"";;;;;;;;"""";;;";;;" ;;;;;;""";;;;;;;""";"";;;;;";;;";;;;"";;;";";;;;;;;;"";;;;;;;";;;""""";";; ";;;;;;"";";;;;;""";"";;;""";;;;;;";;";;;;;;;;";;;;;""";;;;;;;;;;""""";;;" "";;;;;;;;;;;;;""""";;;;"""""";;;;";;;;;;;;;;;";;;;;;"""""";;;;;;""""""";" "";";;;;;;;;;;";;"";;;;;"""""""";;"";;;";;;;;""";;;;;;;;;;;;;;"""""""";;;; ";;";;;;;;""";;;;;";";"""";;;""";;""";;;;;";;"";;;;;;;;;""";;;;;"";;;;;;"" ;;;";;;;;"""";;;;;;;;;;"";;;;;"";;;;;;;";;;;;;;;;;;;;;;""""";;";;;;;;;"""" ;;;;;";;""""";;;;;;;;;;"";;;;;;;;;;;;;""";;;;"""""";;;;"""";;;;;;;;;;;"""" ;;";;"";""""";;;;;;;;;;;;;;;;;"";;;;;;;"";;;;";;;;";;;;""""";;;";;;;;;;;;" """";;";;""""";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;";;;;";;;;;;;;;;;;;;";;;;;";; """";;";;;;";;;;;;;";;;";";";;;;;;;;;;";@;;""";;;;""";;;;"""";;";;;";"";;" """""";;;;;;;";;;;""";;";;;;;;";";";;;";;";;!;;;;;;;;;;;";;;;";""";;;;;;""
CarryingGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
.
#..
..#..# #
...... #
#...... .
.......# ##
........# ..#
#....@##....#
#.............CellularGame
================================ Health: 19 / 20 ===========================---- g###..#####.........Explore the Dungeon. Cursor keys to move.############ .###..#####.........####################.#.........#####.################ ..##....g.......g...####################.#.........#####.################ ..##..#########.#################....###.#####..########.################ ......#########.#################g...###.#####..########.################ ..#############.########........###.####.#####..########.################ ###############.########........###.####.#####..########.################ ###############.########........###.####.#####..########.################ ###############.########....o...###.####.#####..########.##.......####### ###############.########.###.######.####.#####..########.##.......####### ###############.#####........######.#.....####..########.##.......####### ###############.#####........######.#...@.####..########.##.......####### ###############.#####g.......######.#..o..####..########g.........#######
CombatGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
.
...
######....
#@......#
#......#DrunkardGame
####################################### ####################################### ########.........###################### ########.........##.@.....############# ########..................############# ########.........##.......############# ######...........#####.################ ######.#.........#####.################ ######.#.........#####.################ ######.#.........#####.################ ...###.#####..########.################ ...###.#####..########.################ #.####.#####..########.################ #.####.#####..########.################
Dungeon graphicsGame
................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................
Dungeon mapGame
................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................
Dungeon playerGame
################################################################################ ################################################################################ ####.......#######...############################.........###################### ####.......#######...############################.........##.@.....############# #####.#.##########...############################..................############# #####.#.###########.#############################.........##.......############# #####.#.##########.........####################...........#####.################ #####.#.###..#####.........####################.#.........#####.################ #####.#.###..#####.........####################.#.........#####.################ #####....##................####################.#.........#####.################ #####....##..#########.#################....###.#####..########.################ #####........#########.#################....###.#####..########.################ #####....#############.########........###.####.#####..########.################ #####.################.########........###.####.#####..########.################
Dungeon roomsGame
######################################## ######################################## ################.........############### ################.........##.......###### ################..................###### ################.........##.......###### ##############......@....#####.######### ##############.#.........#####.######### ##############.#.........#####.######### ##############.#.........#####.######### #######....###.#####..########.######### #######..o.###.#####..########.######### ......###.####.#####..########.######### ......###.####.#####..########.#########
DungeonecsGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
######
........
........# ...
........@........
........# ...EyesightGame
You are dead!
You earned 2 points
(P) Play Again
(Q) Quit GameFlappy dragonGame
Press SPACE to flap.
Flappy playerGame
You are dead!
(P) Play Again
(Q) Quit GameFlappy statesGame
================================ Health: 9 / 10 ========================--------
Explore the Dungeon. Cursor keys to move.
######
........
........# ...
........@........
.......o# ...FovGame
================================ Health: 9 / 10 ========================--------
Explore the Dungeon. Cursor keys to move.
#########################################################
#########################################################
##########################.........######################
##########################.........##.......#############
##########################.............o@...#############
##########################.........##.......#############GauntletGame
Hello, what's your name? Welcome to the Treehouse, bert
GuestlistConsole● rec
Hello, what's your name? (Leave empty and press ENTER to quit)
Welcome to the treehouse, bert
Hello, what's your name? (Leave empty and press ENTER to quit)
Welcome to the treehouse, steve
Lactose-free milk is in the fridge
Do not serve alcohol to steve
Hello, what's your name? (Leave empty and press ENTER to quit)
Do not allow fred in!
Hello, what's your name? (Leave empty and press ENTER to quit)
joebob is not on the visitor list.
Hello, what's your name? (Leave empty and press ENTER to quit)
The final list of visitors:
[
Visitor {Guestlist enumConsole● rec
Hello, what's your name? "Ada"
Guestlist problemConsole● rec
Hello, what's your name? Hello Bert, enjoy your treehouse.
Guestlist structConsole● rec
Hello, what's your name? Hello, ada
Guestlist trimConsole● rec
Hello, what's your name? (Leave empty and press ENTER to quit)
Hello Bert. Enjoy your treehouse.
Hello, what's your name? (Leave empty and press ENTER to quit)
Hi Steve. Your milk is in the fridge.
Hello, what's your name? (Leave empty and press ENTER to quit)
Wow, who invited Fred?
Hello, what's your name? (Leave empty and press ENTER to quit)
bob is not on the visitor list.
Hello, what's your name? (Leave empty and press ENTER to quit)
The final list of visitors:
[
Visitor {
name: "bert",
greeting: "Hello Bert. Enjoy your treehouse.",Guestlist vectorConsole● rec
================================ Health: 20 / 20 =============================== .###..#####.........Explore the Dungeon. Cursor keys to move.############ g###..#####.....g...####################.#.........#####.################ ..##.....g..........####################.#.........#####.################ ..##..#########.#################....###.#####..########.################ ......#########.#################g...###.#####..########.################ ..#############.########........###.####.#####..########.################ ###############.########........###.####.#####..########.################ ###############.########........###.####.#####..########.################ ###############.########...o....###.####.#####..########.##.......####### ###############.########.###.######.####.#####..########.##.......####### ###############.#####........######.#.....####..########.##.......####### ###############.#####g.......######.#..o@.####..########.##.......####### ###############.#####........######.#.....####..########..........#######
HealingGame
================================ Health: 20 / 20 ===============================
Explore the Dungeon. Cursor keys to move.
###########################################################
###########################################################
############################.........######################
############################.........##.......#############
############################............@.....#############
############################.........##.......#############HealthGame
Hello, world!
HelloConsole● rec
Hello, Bracket Terminal!
Hello btermGame
Hello, what's your name? Hello, Ada
Hello yournameConsole● rec
####################################### ####################################### ########.........###################### ########.........##.......############# ########............@.....############# ########.........##.......############# ######...........#####.################ ######.#...E.....#####.################ ######.#.........#####.################ ######.#.........#####.################ ...###.#####..########.################ .o.###.#####..########.################ #.####.#####..########.################ #.####.#####..########.################
IntentGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move. Dungeon Level: 1
;
;
";; ";
;;;; ;;
;;;;; ;
;;;;;; ;""
;;;;;;; ;;""
";;;;;"";;;;"
";;;@;;;;;;;;;"
";;;;;;"Loot tablesGame
Your quest has ended.
Slain by a monster, your hero's journey has come to a premature end.
The Amulet of Yala remains unclaimed, and your home town is not saved.
Don't worry, you can always try again with a new hero.
Press 1 to play again.LosingGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
######
........ ########
........##.......#
........@.........#
........##.......#MemoryGame
You have won!
You put on the Amulet of Yala and feel its power course through your veins.
Your town is saved, and you can return to your normal life.
Press 1 to play again.More levelsGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move. Dungeon Level: 1
;
;
";
;;
;
;""
;;""
;;; ";;;;"
";;;;;@;;;;;;;"
";;;;;;"PackagingGame
####################################### ####################################### ########.........###################### ########.........##.@.....############# ########..................############# ########.........##.......############# ######...........#####.################ ######.#.........#####.################ ######.#.........#####.################ ######.#.........#####.################ ...###.#####..########.################ ...###.#####..########.################ #.####.#####..########.################ #.####.#####..########.################
PlayerecsGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
;
;
";; ";
;;;; ;;
;;;;; ;
;;;;;; ;""
;;;;;;; ;;""
";;;;;"";;;;"
";;;@;;;;;;;;;"
";;;;;;"PotionsGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
.
.
#.. #.
.... ..
..... .
...... .##
....... ..##
#.....##....#
#...@.........#
#......#PrefabGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
;
;
";; ";
;;;; ;;
;;;;; ;
;;;;;; ;""
;;;;;;; ;;""
";;;;;"";;;;"
";;;@;;;;;;;;;"
";;;;;;"ThemedGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
g
.......
...........
....g.........
...............
................
..........g......
.................
........@.........
...................TraitsGame
================================ Health: 10 / 10 ===============================
Explore the Dungeon. Cursor keys to move.
########
. #.@.....#
..............#Traits roomsGame
####################################### ####################################### ########.........###################### ########.........##.......############# ########............@.....############# ########.........##.......############# ######...........#####.################ ######.#...E.....#####.################ ######.#.........#####.################ ######.#.........#####.################ ...###.#####..########.################ .o.###.#####..########.################ #.####.#####..########.################ #.####.#####..########.################
TurnbasedGame
##################################### ##################################### ######.........###################### ######.........##.......############# ######..............@...############# ######.........##.......############# ####...........#####.################ ####.#.........#####.################ ####.#...E.....#####.################ ####.#.........#####.################ .###.#####..########.################ .###.#####..########.################ ####.#####..########.################ ####.#####..########.################
WanderingGame
You have won!
You put on the Amulet of Yala and feel its power course through your veins.
Your town is saved, and you can return to your normal life.
Press 1 to play again.WinningGame
Hello, what's your name? Hello, Ada
Yourname functionConsole● rec