Skip to content

Instantly share code, notes, and snippets.

View SirLich's full-sized avatar
🐋
And so it goes...

SirLich SirLich

🐋
And so it goes...
View GitHub Profile
@SirLich
SirLich / code.py
Created February 24, 2024 08:40
Markov Puzzle Solution
from sympy import *
import itertools
# Number of matches to play at home, before playing away
HOME_MATCHES = 3
# First to this number wins.
MATCHES_TO_WIN = 4
# The chances of winning away or home games
# HOME_CHANCE = Rational(51/100)
# AWAY_CHANCE = Rational(49/100)
@SirLich
SirLich / pd.md
Last active January 5, 2024 23:07
PD: Rules

Prisoner's Dilemma Face Off!

Introduction

The Prisoner's Dilemma is a game theory thought experiment that involves two rational agents, each of whom can cooperate for mutual benefit or betray their partner ("defect") for individual reward. I will run a tournament, simulating this dilemma.

It's a hopelessly simple game, but I have a twist which should provide some enjoyment!

Example Bot

@SirLich
SirLich / tech_goals_2024.md
Last active December 29, 2023 00:19
SirLich: Tech Goals 2024

SirLich: Tech Goals 2023

Here are my technology and language goals for 2024. Here are my goals (with reflections) for 2023.

Continue Using/Learning

  • Bevy (goal: Jam quality game)
  • Rust (goal: Finish project, or work related)
  • C++ (goal: Learn some STL, maybe complete some Leetcode problems)
  • Godot (content to make jam games)
@SirLich
SirLich / tech_goals_2023.md
Last active December 28, 2023 21:26
SirLich: Tech Goals 2023

SirLich: Tech Goals 2023

Inspired by Ben Awad, here are my technology and language goals for 2023.

Continue Using/Learning

  • Lua
    • LDoc/LuaDoc
    • LuaRocks
    • Language Review (MetaTables, all keywords, etc)
  • Godot
@SirLich
SirLich / sapiens_shader_compiler.py
Created August 28, 2022 15:35
A very WIP mini compiler to help you mod Sapiens with Shaders
"""
This little utility allows you to quickly and easily create
shaders for Sapiens.
It functions by automatically pulling in required dependencies from the game
installation folder before compiling, allowing you to keep your project
clean.
Requires you to download compiler yourself.
"""
@SirLich
SirLich / cipher.txt
Created August 8, 2022 17:21
Encrypted Text
/ CZ SR WJ + VN PQ UQ TI FG BW DL XW JN EI TH + BM GV + ZS HQ RU + AE GR JL QM + VK AE + HY AF FY ID + QY TY ZS XF + XS NV VI + JF OZ QE BW + YV LD LF + ZC KV EH PJ + TP OB DU ZB RO CX AG WJ QG + IE SX / KJ BV PW + IM TY VT BW FK + OU VP HH BW FN VZ JI + VN YB GM SB + PT YE UD DT + UX UY PQ MU + FV KH + XS LH ZD RE TL XK YP KQ UM IC KW RU HH BW + XD QC + WC MN AR + NQ CT LR RG TK + XB PO VP YC MS / IG WO UM + JU + HW FR JG RK + VH ZQ QK TY DJ QG + FP OZ DC YF + TY MK + UM PW MS AP NY HT + HN HJ + UQ EI EB QZ BG ZU + LV UP MK KM EU WP QX + GL IZ YW QM ED + DS JU KE ID + IE ZU ID / OK FY YM VM ON EM + AS UY GW + IB JP LZ FG JF YV YS YE + XZ AZ GQ YX + FV YD + CZ LJ JO + OF DF RR PZ NM LJ DK LV IQ + OG KH CF GQ VY + EI CN SF + AZ PV NN UL BL HJ + KM NH JH / EQ CU UD OO ZY VY KJ NY UX + YH RH IX GH + RO AI + CJ KV DS + JF YD + JQ KQ MM + BY + CY DK YJ SM IZ ND VS + SX EG XX UD + BY + PK VK FS SB NL JB EZ + WJ NX SB ZZ OQ + BV KT AQ / XX OE SP QV YC TG QK NM + HS UY GW CN + GB AF ZE AI ZU BT KT YI LF + RM KK SZ +
@SirLich
SirLich / code_review.py
Created August 8, 2022 10:44
Code Review for Reddit
def recvMessage():
global MAXBYTES
global client
global connectedServer
while True:
@SirLich
SirLich / programming_discords.md
Last active April 7, 2024 08:08
Programming Discords

Programming Discords

This gist contains a sorted list of programming related discord invite links. If you want to say high, this is my current Hangout.

Programming Communities

Programming Languages