Skip to content

Instantly share code, notes, and snippets.


Travis Briggs audiodude

View GitHub Profile
View gist:8bacb185c588a4e6d10b2f2a8c1ffd67
20-07-06 01:46:26 Unhandled Error
Traceback (most recent call last):
File "/Users/tmoney/Dropbox/code/evennia/venv/lib/python3.8/site-packages/twisted/python/", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/Users/tmoney/Dropbox/code/evennia/venv/lib/python3.8/site-packages/twisted/python/", line 86, in callWithContext
return{ILogContext: newCtx}, func, *args, **kw)
File "/Users/tmoney/Dropbox/code/evennia/venv/lib/python3.8/site-packages/twisted/python/", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/Users/tmoney/Dropbox/code/evennia/venv/lib/python3.8/site-packages/twisted/python/", line 85, in callWithContext
return func(*args,**kw)
View adventure.txt
You are Klaak, the leader of a clan of kobolds. For many years, your people have
been persecuted by the higher races. You have a slingshot and a loin cloth.
You walk out of your cave one morning and see that the humans have built a road
through the forest. They are building a town in the heart of the forest. You
decide to join them
> ask humans about town
"What is this place?" you say. "It looks like a big city".
The humans look at each other. "A city? A town? We don't live here!"
View adventure.txt
You are Henry, king of the kingdom of Larion. You have all the wealth and power
you could possibly dream of. One day, your most trusted advisor comes to you
and tells you that a great evil is coming to this land. A being known as the
Dark Lord has been sighted in the area
> summon high wizard
The High Wizard appears before you and asks if he can help. He says he will be
happy to do so, but only if you promise him something.
"I want you to bring me back the head of the Dark Lord".
View adventure.txt
You are Walter, a noble living in the kingdom of Larion. You have a pouch of
gold and a small dagger. You are awakened by one of your servants who tells
you that your keep is under attack. You look out the window and see the enemy
soldiers marching towards your door
> learn magic
The servant leads you to the library where he has hidden some books. He explains
that the enemy has been gathering all the knowledge they can find about magic
and then unleashing it on the world. The only way to stop them is to learn as
much as possible before they do
audiodude / adventure.txt
Created Dec 7, 2019
Darth Maul the Peasant
View adventure.txt
You are Darth Maul, a peasant living in the kingdom of Larion. You have a pitchfork
and a nothing else. You wake up and begin working in the fields. You see a girl
walking towards you with a basket full of vegetables. She is beautiful and she
wants to be your friend
> kiss her
She smiles at you and then kisses you on the cheek. "I'm sorry I can't go with
you," she says.
"It's okay," you say. "We'll find another way".
audiodude / adventure.txt
Created Dec 7, 2019
Bardric the Knight
View adventure.txt
You are Bardric, a knight living in the kingdom of Larion. You have a steel longsword
and a wooden shield. You are on a quest to defeat the evil dragon of Larion.
You've heard he lives up at the north of the kingdom. You set on the path to
defeat him and walk into a dark forest. As you enter the forest you see a large
black dragon flying through the sky. He is very angry.
"What do you want?" The dragon asks.
"I am a knight from the kingdom of Larion and I wish to speak with your king"
> smile
audiodude / adventure.txt
Last active Dec 7, 2019
Oslo the Rogue
View adventure.txt
You are Oslo, a rogue living in the kingdom of Larion. You have a long steel dagger and a length of rope. You walk down
the city street looking for somehwere to steal from. You look around and see that it is very quiet. There are no guards
patrolling the streets or any other people in sight
> You go to inn.
You decide to go to an inn where you can get away from the city. The only one in the area is called "The Inn at the
Crossroads". It seems like a good place to hide out
import xml.etree.ElementTree as Et
tree = Et.ElementTree(file = 'test.xml')
root = tree.getroot()
for child in root:
for grandchild in child:
audiodude / protected.txt
Created Aug 26, 2019
English Wikipedia WP 1.0 log pages that are still protected
View protected.txt

Implementatations of Regret Minimization and Counterfactual Regret Minimization in Python.

These are implemented as outlined in An Introduction to Counterfactual Regret Minimization (Neller and Lanctot) (paper here) finds a correlated equilibrium in Rocks-Paper-Scissors, which in this case happens to be the Nash equilibrium. It is very similar to the code found in this YouTube video finds a correlated equilibrium in Kuhn Poker which is a toy poker game described in the paper and previously. finds a correlated equilibrium in 3 player Kuhn Poker, as described in this paper

You can’t perform that action at this time.