Skip to content

Instantly share code, notes, and snippets.

@actsasgeek
Created May 3, 2016 18:24
Show Gist options
  • Save actsasgeek/346521afca44554352e67590533bcbf5 to your computer and use it in GitHub Desktop.
Save actsasgeek/346521afca44554352e67590533bcbf5 to your computer and use it in GitHub Desktop.
Examples of Capstone projects - AI 605.445

One student did a straight-forward text-based adventure, narrative:

Uh oh... Degi's parents have been captured!

Based on the features of this plane, ['setting', 'waxing', 'fall'], Degi will be dropped in map01
Degi needs to get to the portal shrine for E

Degi's path through the plane looks like the map below
(0 = starting point, X = a visited point)

......***A
....***W..
.....*F*..
......*...
~~~~..XXXE
~~~~~XX^..
~~~.XX*^^^
~~XXX**^^^
~.X****V^^
0XX.***..^

Degi has now reached the portal shrine for E
Now Degi needs to challenge the Spirit to a card came...

In this game, two players each draw cards from a pile. Each card has some number of points. After all cards are drawn from the pile, the player with the most points wins.

Shrine Keeper draws a card and scores 13 points
Degi draws a card and scores 11 points
Shrine Keeper draws a card and scores 15 points
Degi draws a card and scores 12 points
Shrine Keeper draws a card and scores 9 points
Degi draws a card and scores 12 points

Spirit's final score is 37 points
Degi's final score is 35 points

Unfortunately, Degi is has lost the card came.
Since the Spirit is bored, he has agreed to play another game with Degi...

Shrine Keeper draws a card and scores 12 points
Degi draws a card and scores 15 points
Shrine Keeper draws a card and scores 14 points
Degi draws a card and scores 14 points
Shrine Keeper draws a card and scores 11 points
Degi draws a card and scores 14 points

Spirit's final score is 37 points
Degi's final score is 43 points

Degi has won the card game and has been granted permission to pass through the portal to plane E

Another student did something with animated ASCII art and separate screens:


  Water Guardian

  _______,
 <_______|)&<
       _.o//
      ((\_/
       // \\
      |_| |_|

I'll let you pass if you
can beat me at this game of Tack!

[[(96, 94), (89, 91), (84, 88), (83, 87), (81, 78)],
 [(78, 77), (77, 74), (77, 70), (77, 69), (72, 59)],
 [(71, 52), (58, 50), (56, 47), (55, 46), (42, 41)],
 [(37, 32), (34, 28), (29, 26), (28, 16), (27, 15)],
 [(25, 12), (23, 11), (17, 10), (11, 6), (5, 1)]]

Press a key to continue...

Here's another submission that would have benefitted from being cleaned up a bit but used ASCII art:

Trying to get to water
Actually got to: water

 `~~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~~^~^~^~^~^~`
 `~^_~^~^~-~^_~^~^_~-_~^~^~-~^_~^~-~^~^~^-~^~^_~^~^~^`
 `~^~-~~^~^~-^~^_~^~~ ~-~^~~-~^ ~^~^~-~^~_~^~^~~^~-~~`
 `~^~^~-~^~~^~-~^~~-~^~^~-~^~~^-~^~^~^-~^~^~^~^~~^~-^`

Positions of things are:
{'moon': 'waning', 'season': 'winter', 'sun': 'setting'}
Using map:  map02
shrine is at (1, 7)
Degi is dropped randomly at (3, 7)
['*', '*', '*', '*', '*', '*', '*', '*', '*', '*']
['^', '^', '^', '.', '*', '*', '*', '*', '*', '.']
['^', '^', '^', '^', '~', '~', '~', '~', '~', '~']
['.', '^', '^', '^', '^', '.', '*', '*', '.', '.']
['.', '.', '^', '^', '^', '^', '*', '*', '.', '.']
['.', '.', '^', '^', '^', '^', '*', '.', '.', '.']
['.', '.', '.', '^', '^', '^', '.', '.', '.', '.']
['.', 'S', '.', 'D', '^', '.', '.', '^', '.', '.']
['*', '*', '.', '.', '.', '.', '.', '^', '.', '.']
['*', '*', '*', '.', '.', '.', '.', '.', '.', '.']
(3, 7)   --> D
(2, 7)   --> .
(1, 7)   --> S

                                                  ___I___
                                                 /=  |  #}
                                                /.__-| __}
                                                |/ _\_/_ \|
                                                (( __ \__))
                                             __ ((()))))()) __
                                           ,'  |()))))(((()|# `.
                                          /    |^))()))))(^|   =)
                                         /    /^v^(())()()v^)'  .)
                                         |__.'^v^v^))))))^v^v`.__|
                                        /_ ' \______(()_____(   |
                                   _..-'   _//_____[xxx]_____\.-|
                                  /,_#\.=-' /v^v^v^v^v^v^v^v^| _|
                                  \)|)      v^v^v^v^v^v^v^v^v| _|
                                   ||       :v^v^v^v^v^v`.-' |#  \,
                                   ||       v^v^v^v`_/\__,--.|\_=_/
                                   ><       :v^v____|  \_____|_
                                ,  ||       v^      /  \       /
                               //\_||_)\    `/_..-._\   )_...__|
                              ||   \/  #|     |_='_(     |  =_(_
                              ||  _/\_  |    /     =\    /  '  =|
                               ||/ \/ )/     |=____#|    |'=....#|

To get through you must play game!!!
Me, guard is player 1, you squirrel are lowly player 2
[[(1, -1), (-1, -1), (1, -1), (-1, 1)], [(1, -1), (1, 0), (1, 1), (0, 1)], [(0, 0), (-1, 0), (0, -1), (1, -1)], [(1, 1), (-1, -1), (-1, -1), (-1, -1)]]
______________________________________________________________________________________
Continue to the next step??? (no to exit, c to always continue)

This version is a bit more bare bones than I would have liked but it has all the major pieces:

Somehow I've made it to the shrine of the Fire element, but there is a Spirit!
The spirit is challenging me to a game.
The spirit guardian of the shrine has challenged me to the following game:
[(55, 63), (42, 40), (56, 66), (45, 54), (47, 59)]
[(97, 89), (94, 85), (99, 92), (95, 86), (96, 88)]
[(16, 8), (0, 4), (17, 9), (1, 6), (9, 7)]
[(38, 32), (23, 21), (41, 39), (24, 28), (27, 30)]
[(88, 83), (68, 72), (92, 84), (79, 78), (80, 82)]
Finally I have beaten the Fire Spirit with payoff 99 and can take the portal.
Success! The portal has brought me to the plane I was hoping for - the Water plane!
The sun is now setting, the moon is waning, and the season is fall.
I'm on the Water plane (located at (6, 8)), starting at position (6, 2). I need to find a shrine that holds a portal to another plane so that I can find my parents!
I'll need to use map01 if I am going to find the shrine! It looks like this:
['.', '.', '.', '.', '.', '.', '*', '*', '*', '.']
['.', '.', '.', '.', '*', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '.', '*', '.', '.', '.']
['~', '~', '~', '~', '.', '.', '.', '.', '.', '.']
['~', '~', '~', '~', '~', '.', '.', '^', '.', '.']
['~', '~', '~', '.', '.', '.', '*', '^', '^', '^']
['~', '~', '.', '.', '.', '*', '*', '^', '^', '^']
['~', '.', '.', '*', '*', '*', '*', '*', '^', '^']
['.', '.', '.', '.', '*', '*', '*', '.', '.', '^']
I want to go to the Wind plane next, so I'll have to find that portal. My map suggests it is at position (0, 7)
I believe I have found a way to the portal. The path to get there is:
[(6, 2), (5, 2), (4, 2), (3, 2), (2, 2), (1, 2), (0, 2), (0, 3), (1, 3), (2, 3), (3, 3), (4, 3), (4, 4), (5, 3), (5, 4), (5, 5), (5, 6), (4, 6), (3, 6), (3, 7), (2, 7), (4, 7), (6, 3), (6, 4), (6, 5), (0, 1), (1, 1), (1, 3), (2, 1), (2, 3), (2, 8), (1, 8), (3, 1), (3, 3), (4, 3), (4, 7), (5, 3), (5, 4), (5, 7), (6, 1), (6, 4), (6, 5), (6, 6), (7, 2), (7, 3), (7, 3), (7, 4), (7, 4), (7, 4), (0, 0), (1, 0), (1, 1), (1, 9), (0, 9), (2, 0), (2, 1), (2, 9), (3, 0), (3, 1), (3, 8), (4, 1), (4, 8), (5, 1), (5, 1), (5, 7), (6, 3), (6, 6), (6, 6), (6, 7), (7, 4), (8, 2), (8, 3), (8, 3), (8, 3), (8, 4), (8, 4), (8, 4), (8, 4), (8, 4), (8, 4), (8, 5), (8, 5), (8, 5), (8, 5), (8, 5), (8, 5), (0, 4), (1, 0), (1, 4), (1, 7), (2, 0), (2, 4), (2, 6), (2, 9), (3, 0), (3, 4), (3, 4), (3, 8), (3, 9), (3, 9), (4, 0), (4, 0), (4, 1), (4, 5), (4, 5), (4, 8), (5, 0), (5, 0), (5, 7), (5, 8), (6, 0), (6, 7), (6, 7), (6, 7), (7, 1), (7, 1), (7, 5), (7, 5), (7, 5), (7, 5), (8, 1), (8, 4), (9, 2), (9, 3), (9, 3), (9, 3), (9, 3), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 4), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (9, 5), (0, 8), (1, 4), (1, 7), (2, 4), (2, 6), (3, 4), (3, 5), (3, 9), (3, 9), (4, 0), (4, 1), (4, 5), (4, 8), (4, 9), (5, 0), (5, 0), (5, 1), (5, 8), (5, 8), (6, 7), (6, 8), (7, 5), (7, 5), (7, 5), (7, 5), (7, 5), (7, 5), (7, 5), (7, 5), (7, 6), (8, 1), (8, 1), (8, 6), (8, 6), (8, 6), (8, 6), (8, 6), (8, 6), (9, 1), (9, 1), (9, 4), (0, 8), (4, 9), (4, 9), (4, 9), (5, 8), (5, 8), (5, 9), (6, 0), (6, 0), (6, 8), (6, 8), (6, 8), (6, 8), (7, 0), (7, 0), (7, 0), (7, 6), (7, 6), (7, 6), (7, 6), (7, 6), (7, 6), (7, 7), (8, 0), (9, 0), (9, 0), (9, 1), (9, 1), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (9, 6), (0, 5), (0, 7)]
Somehow I've made it to the shrine of the Water element, but there is a Spirit!
The spirit is challenging me to a game.
The spirit guardian of the shrine has challenged me to the following game:
[(71, 75), (81, 82), (96, 91), (98, 94), (82, 87)]
[(0, 6), (2, 7), (18, 12), (19, 21), (12, 10)]
[(20, 22), (25, 23), (30, 33), (36, 35), (27, 24)]
[(59, 61), (61, 62), (64, 71), (66, 74), (63, 67)]
[(48, 36), (49, 45), (57, 56), (58, 59), (51, 50)]
Finally I have beaten the Water Spirit with payoff 98 and can take the portal.
Success! The portal has brought me to the plane I was hoping for - the Wind plane!
The sun is now rising, the moon is waxing, and the season is fall.
I'm on the Wind plane (located at (7, 8)), starting at position (2, 1). I need to find a shrine that holds a portal to another plane so that I can find my parents!
I'll need to use map01 if I am going to find the shrine! It looks like this:
['.', '.', '.', '.', '.', '.', '*', '*', '*', '.']
['.', '.', '.', '.', '*', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '.', '*', '.', '.', '.']
['~', '~', '~', '~', '.', '.', '.', '.', '.', '.']
['~', '~', '~', '~', '~', '.', '.', '^', '.', '.']
['~', '~', '~', '.', '.', '.', '*', '^', '^', '^']
['~', '~', '.', '.', '.', '*', '*', '^', '^', '^']
['~', '.', '.', '*', '*', '*', '*', '*', '^', '^']
['.', '.', '.', '.', '*', '*', '*', '.', '.', '^']
I want to go to the Earth plane next, so I'll have to find that portal. My map suggests it is at position (2, 4)
I believe I have found a way to the portal. The path to get there is:
[(2, 1), (2, 2), (2, 3), (1, 1), (1, 2), (1, 2), (1, 3), (1, 3), (1, 3), (2, 0), (3, 1), (3, 2), (3, 2), (3, 3), (3, 3), (3, 3), (0, 1), (0, 2), (0, 2), (0, 2), (0, 3), (0, 3), (0, 3), (0, 3), (0, 3), (0, 3), (1, 0), (1, 0), (3, 0), (3, 0), (4, 2), (4, 2), (4, 3), (4, 3), (4, 3), (4, 3), (4, 3), (4, 4), (4, 4), (4, 4), (4, 4), (4, 4), (0, 0), (0, 0), (0, 0), (2, 4)]
Somehow I've made it to the shrine of the Wind element, but there is a Spirit!
The spirit is challenging me to a game.
The spirit guardian of the shrine has challenged me to the following game:
[(48, 44), (45, 41), (56, 47), (52, 46), (41, 39)]
[(7, 19), (6, 8), (24, 23), (13, 20), (1, 1)]
[(84, 83), (78, 81), (99, 95), (98, 93), (70, 77)]
[(65, 66), (63, 54), (68, 76), (66, 74), (58, 51)]
[(32, 29), (31, 28), (38, 35), (36, 32), (25, 26)]
Finally I have beaten the Wind Spirit with payoff 99 and can take the portal.
Success! The portal has brought me to the plane I was hoping for - the Earth plane!
The sun is now setting, the moon is waxing, and the season is fall.
I'm on the Earth plane (located at (7, 9)), starting at position (9, 2). I need to find a shrine that holds a portal to another plane so that I can find my parents!
I'll need to use map01 if I am going to find the shrine! It looks like this:
['.', '.', '.', '.', '.', '.', '*', '*', '*', '.']
['.', '.', '.', '.', '*', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '.', '*', '.', '.', '.']
['~', '~', '~', '~', '.', '.', '.', '.', '.', '.']
['~', '~', '~', '~', '~', '.', '.', '^', '.', '.']
['~', '~', '~', '.', '.', '.', '*', '^', '^', '^']
['~', '~', '.', '.', '.', '*', '*', '^', '^', '^']
['~', '.', '.', '*', '*', '*', '*', '*', '^', '^']
['.', '.', '.', '.', '*', '*', '*', '.', '.', '^']
I want to go to the Fire plane next, so I'll have to find that portal. My map suggests it is at position (9, 6)
I believe I have found a way to the portal. The path to get there is:
[(9, 2), (9, 3), (9, 4), (9, 5), (8, 2), (8, 3), (8, 3), (8, 4), (8, 4), (8, 4), (8, 5), (8, 5), (8, 5), (8, 5), (9, 1), (7, 3), (7, 3), (7, 4), (7, 4), (7, 4), (7, 4), (7, 4), (8, 1), (8, 1), (9, 0), (9, 6)]
Somehow I've made it to the shrine of the Earth element, but there is a Spirit!
The spirit is challenging me to a game.
The spirit guardian of the shrine has challenged me to the following game:
[(3, 27), (1, 19), (2, 21), (0, 18), (10, 31)]
[(22, 37), (18, 34), (21, 35), (16, 33), (27, 39)]
[(47, 55), (33, 48), (35, 49), (32, 41), (50, 57)]
[(62, 75), (52, 60), (55, 73), (51, 59), (65, 76)]
[(95, 92), (84, 86), (85, 87), (78, 77), (99, 99)]
Finally I have beaten the Earth Spirit with payoff 99 and can take the portal.
Success! The portal has brought me to the plane I was hoping for - the Fire plane!
The sun is now setting, the moon is waning, and the season is fall.
I'm on the Fire plane (located at (8, 9)), starting at position (2, 7). I need to find a shrine that holds a portal to another plane so that I can find my parents!
I'll need to use map01 if I am going to find the shrine! It looks like this:
['.', '.', '.', '.', '.', '.', '*', '*', '*', '.']
['.', '.', '.', '.', '*', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '*', '*', '*', '.', '.']
['.', '.', '.', '.', '.', '.', '*', '.', '.', '.']
['~', '~', '~', '~', '.', '.', '.', '.', '.', '.']
['~', '~', '~', '~', '~', '.', '.', '^', '.', '.']
['~', '~', '~', '.', '.', '.', '*', '^', '^', '^']
['~', '~', '.', '.', '.', '*', '*', '^', '^', '^']
['~', '.', '.', '*', '*', '*', '*', '*', '^', '^']
['.', '.', '.', '.', '*', '*', '*', '.', '.', '^']
I want to go to the Water plane next, so I'll have to find that portal. My map suggests it is at position (1, 8)
I believe I have found a way to the portal. The path to get there is:
[(2, 7), (2, 8), (1, 8)]
Somehow I've made it to the shrine of the Fire element, but there is a Spirit!
The spirit is challenging me to a game.
The spirit guardian of the shrine has challenged me to the following game:
[(51, 63), (48, 58), (46, 57), (42, 51), (41, 37)]
[(82, 75), (80, 73), (71, 70), (64, 69), (52, 64)]
[(33, 34), (29, 32), (28, 25), (27, 24), (24, 22)]
[(22, 19), (17, 14), (7, 13), (3, 9), (1, 4)]
[(99, 93), (96, 91), (91, 90), (86, 87), (83, 83)]
Finally I have beaten the Fire Spirit with payoff 99 and can take the portal.
Success! The portal has brought me to the plane I was hoping for - the Water plane!
At last I have made it to the plane where my parent are being held captive, but I still need to find them.
I'm starting at position (4, 1) and need to locate the shrine where I believe they are being held, at position (9, 3)
The path to get to the goal shrine is:
(9, 3)
Finally!! I have made it to the Water shrine, where my parents have been held captive! We are united at last!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment