Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

wallabra wallabra

View GitHub Profile
@wallabra
wallabra / prng.py
Created September 30, 2018 20:51
DS+DLSFR (Delta-State + Double-LSFR) PRNG
import itertools
def bit_slice(x, start, stop=None, relative=True):
if stop is None:
stop = 16
if not relative:
stop -= start
@wallabra
wallabra / betmanplans.md
Last active September 25, 2018 01:13
Plans for Betman

Betman plans

What we want for Betman (previously known as betsys.py): Classes: Competitor, Better, Game, System, Matchmaker, Outlet, Team, SystemInterface.

  • Each Competitor holds at least an ID, a human readable name, and subclasses may hold a tier, like in an ELO system.
  • Each Better holds an ID, a human readable name and a balance.
  • Each Team class holds an ID, a human readable name, and the involved competitors.
  • Each Game class (and its subclasses) holds the involved Competitors, and what Teams they pertain to.
  • The Matchmaker subclasses will find two competitors, create a Game subclass with them, and return the game.
@wallabra
wallabra / JgOfAdl.txt
Created September 21, 2018 19:17
Jungle of Adolescence
Jungle of Adolescence
Everyone is biased, I'll just leave society
And make my own little place where I am the law
And probably die of loneliness
(because I am this eluded, ice that doesn't thaw)
@wallabra
wallabra / taskman.py
Last active September 21, 2018 16:52
Python 3 Taskman
import time
import collections
class TaskList(object):
def __init__(self, tasker, name=None):
self.tasker = tasker
self.name = name
self.tasks = collections.deque()
@wallabra
wallabra / what is a game.md
Last active October 6, 2018 03:39
What makes a game a game?

The Definition of Game

Something can be defined as a game when there one or more main agents, called players, have a set of actions they can do, that will alter the current state or the environment, and when, alongside that, there are two kinds of reward possible for such actions:

  • Positive reward: think grabbing a coin, a powerup or a life.
  • Negative reward: think being hit by an enemy, or just plain dying.

To help understand more about games, why they are so, and why (most) games are perfectly fine, we

@wallabra
wallabra / VOVolume.md
Last active September 7, 2018 23:30
How to create UT99 ladders

VOVolume Tutorial

VOVolumes can be confusing for those who have never mapped for Unreal Tournament 2003/2004, and even for those it'll confuse, because it's not an actual freeform volume, but a cylinder!

To explain it, we'll need to look at analogies.

What is an VOVolume? Or a VOVolumeModifier? Or a VOVolumeTrigger?

@wallabra
wallabra / actor.cpp
Last active August 28, 2018 03:03
Simple C++ actor system.
/*
* GAS - the Gustavo Actor System
* (with Event System included)
*
* Author: Gustavo Ramos "Gustavo6046" Rehermann.
* (c)2018. The MIT License.
*
* This system basically allows the creation of
* Actors (entities), in a game world. This does
* not handle 3D coordinates nor collision. I
@wallabra
wallabra / Medley of Danger.inform
Created August 14, 2018 02:48
Medley of Danger - a stub shooter interactive finction (aka text adventure) game.
[Please remember that, in order to compile, you'll most likely need the sounds and cover art. Do not redistribute pre-final compiled versions of the game without the author (Gustavo6046)'s permission!]
"Medley of Danger" by Gustavo Ramos Rehermann
Use American dialect. Use scoring.
Release along with cover art ("Medley of Danger").
Part 1 - Vibes of War
Section 1 - Basics of the world
@wallabra
wallabra / pollmeister.py
Last active July 27, 2018 18:35
IRC GAPS (Group-based Automatic Poll System) bot.
import nltk
import logging
import traceback
import textwrap
import yaml
import string
import time
from irc.bot import ServerSpec, SingleServerIRCBot
from threading import Thread
@wallabra
wallabra / brazilian.md
Created July 16, 2018 14:39
You know you're Brazilian when...

Welcome to the Brazilian Culture

...by Natacha Marins

...translated to Portuguese and converted to website by Gustavo Rehermann


You know you're being Brazilian when...