Skip to content

Instantly share code, notes, and snippets.

Fogus fogus

Block or report user

Report or block fogus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bgg.clj
[{:db/id "ff"
:bgg/id "17"
:publisher/name "Fantasy Flight Games"}
{:db/id "nate-french"
:bgg/id "11655"
:designer/name "Nate French"}
{:db/id "matt-newman"
:bgg/id "40573"
View ice.md
layout title date categories
post
12 Icehouse designs in 2014
2014-12-30 00:36:15 -0800
gamedes icehouse

At one point this year I decided to challenge myself to create 10 Icehouse game designs this year. The precise reasoning for my self-imposed challenge is lost to the dustbin of history (or perhaps at the bottom of a wine glass). That said, the challenge was set and amazingly I managed to meet it. The following games were designed by me in 2014 (sorted in order of my favorite):

  1. [Logistics][l1] -- *I actually think that this is a legitimately
@fogus
fogus / dcs.rkt
Created Jul 26, 2019 — forked from rain-1/dcs.rkt
Dotted Canonical S-expressions - DCSexps
View dcs.rkt
#lang racket
;; printing s-exps as DCS and TDCS, plus examples of what DCS and TDCS look like
(define (dcs l)
(cond ((pair? l)
(begin
(display ".")
(dcs (car l))
(dcs (cdr l))))
@fogus
fogus / notes.md
Created Jul 8, 2019 — forked from frenchy64/notes.md
Notes on JavaScript prototypes
View notes.md

Why Objects were successful

https://www.cs.cmu.edu/~charlie/courses/15-214/2014-fall/slides/25-history-oo.pdf

  • essense of objects is (dynamic) dispatch
  • dispatch provides interoperability
  • first-class interoperability is critical to frameworks and ecosystems
  • frameworks and ecosystems are economically critical to the software industry
  • likely a significant factor in objects' success
  • Also talks about early mistakes in Simula

Why objects are inevitable

View time.txt
"Programs with Common Sense" by JMC
"Situations, Actions, and Causal Laws" by JMC
"A Framework for Representing Knowledge" by Minsky
...
"Why Object-Oriented Languages Need Tail Calls" by GLS
"Worlds: Controlling the Scope of Side-Effects" by Warth, Ohshima, Kaehler, Kay
View maze-generation
(require '[clojure.string :as s])
;; Maze GENERATION
(defn north-of [[row col]] [(dec row) col])
(defn south-of [[row col]] [(inc row) col])
(defn west-of [[row col]] [row (dec col)])
(defn east-of [[row col]] [row (inc col)])
(defn neighbours [rows cols cell]
View mccarthy-eval.lisp
; A MICRO-MANUAL FOR LISP - NOT THE WHOLE TRUTH, 1978
; John McCarthy, Artificial Intelligence Laboratory, Stanford University
; https://www.ee.ryerson.ca/~elf/pub/misc/micromanualLISP.pdf
; https://github.com/jaseemabid/micromanual
; for CL : Rainer Joswig, joswig@lisp.de
; this version runs in a Common Lisp
@fogus
fogus / magic-the-gathering-card-spec.clj
Created Jul 13, 2018 — forked from robert-stuttaford/magic-the-gathering-card-spec.clj
Noodling around with core.spec, modelling M:tG card data
View magic-the-gathering-card-spec.clj
(ns magic-the-gathering-card-spec
(:require [clojure.spec :as s]
[clojure.spec.gen :as gen]))
(s/def ::pos-int (s/and int? (complement neg?)))
(s/def ::set string?)
(s/def ::set-number ::pos-int)
(s/def ::artist string?)
You can’t perform that action at this time.