Skip to content

Instantly share code, notes, and snippets.

@aucchen
aucchen / shufflecomp.py
Last active December 2, 2023 04:19
shufflecomp shuffling code
import pandas as pd
responses = pd.read_excel('2023 ShuffleComp Sign-ups (Edited).xlsx')
print('total responses:', len(responses))
# 1. convert responses to songs as rows
# new table columns: email - username - gaming - want to know username - song - additional info
max_n_songs = 8
[SPOILERS FOR ALL ENDINGS]
There are 9 endings in this game.
1. View all of the datasets starting with an "X". When a crisis comes, choose Liana, and choose to leave.
2. Interact positively with K- as much as you can. When a crisis comes, choose K-.
3. Interact positively with A- as much as you can. When a crisis comes, choose A-. There are two variants of this ending, one explicitly romantic and one non-romantic.
@aucchen
aucchen / varytale_unload.py
Created June 16, 2022 23:45
Python script for converting varytale to dendry
import json
import re
with open('bee.json') as f:
data = json.load(f)
op_pattern = re.compile('-<@(.*)>')
visited_scenes = set([])
@aucchen
aucchen / ifcomppostmortem.txt
Created April 8, 2022 09:18 — forked from sequitur/ifcomppostmortem.txt
IFComp postmortem discussion, Euphoria
[Sequitur] Okay, for real this time, it's now 7PM my time, 4PM in EST, some ungodly early time in PST, and 9PM in GMT.
[Sequitur] So I'm starting the "official" postmortem chat in here; things in this thread will be saved for posterity.
[zarf] When you say "this thread" you mean the tree starting "Okay for real this time"?
[Sequitur] Yep, this top-level tree.
[Sequitur] I mean, obviously Euphoria has an infinite backscroll so all of it is saved; this, however, will get reposted.
[catacalypto] That makes sense.
[katherine] 💩
[katherine] hi posterity
[gostyax] That's more like "bye posterior"
[gostyax] cough
@aucchen
aucchen / renpy_dump.py
Created March 5, 2022 09:28
renpy_dump.py
#!/usr/bin/env python
import codecs
import os
import sys
from pickle import loads
fn = sys.argv[1]
# 1. read data from an itch.io url
# 2. create an ifiction xml
import datetime
import json
import subprocess
from selectolax.parser import HTMLParser
import lxml.etree as etree
import requests
@aucchen
aucchen / extract_current_ifcomp.py
Last active December 27, 2021 16:52
Extract data from ifcomp/ifdb
# Extracts the current ifcomp games, and tries to link them to ifdb entries.
import datetime
import time
from bs4 import BeautifulSoup
import urllib.request
import ifdb
new_url = 'https://ifcomp.org/ballot?alphabetize=1'
@aucchen
aucchen / automated_player.py
Last active February 9, 2023 07:08
automated random tester for twine-sugarcube
#!/usr/bin/env python
import os
import random
import time
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.firefox.options import Options