Modification of https://github.com/stephomi/sculptgl to VR. Minimal interface, works with both Vive and Rift https://github.com/selfsame/sculptgl
import sys, os, re | |
import pprint | |
from util import * | |
import re | |
from textgenrnn import textgenrnn | |
textgen = textgenrnn() | |
def gen(cnt="10", temp="1.0"): | |
textgen.generate(int(cnt), temperature=float(temp)) |
import { createStore } from "redux" | |
const deepcopy = (col) => { | |
return JSON.parse(JSON.stringify(col))} | |
const shallowcopy = (col) => { | |
return Array.isArray(col)?[...col]:{...col}} | |
const update = (col, k, f) => { | |
col = shallowcopy(col) |
import { createStore } from "redux" | |
const shallowcopy = (col) => { | |
if (Array.isArray(col)) { | |
return [...col]} | |
else { | |
return {...col}}} | |
const assoc = (col, k, v) => { | |
col = shallowcopy(col) |
selfsame@box ╺─╸ [macplus] | |
[21:58] >> identify -verbose monoeye.pict | |
Image: monoeye.pict | |
Format: PICT (Apple Macintosh QuickDraw/PICT) | |
Class: DirectClass | |
Geometry: 507x311+0+0 | |
Resolution: 72x72 | |
Print size: 7.04167x4.31944 | |
Units: Undefined | |
Colorspace: sRGB |
[data] | |
Game entities are hashmaps. | |
{:id 5 | |
:hp {:max 100 :current 50} | |
:sentient true | |
:name "frog" | |
:color :green} |
Users claim coordinates of a "room", and define the layout with ascii
#location
5,7
#layout
| $ _/
_| _ _=
ideas for tildemush
's WITCH scripting language
Let's imagine an Alice and Wonderland themed little cake
.
A MUD has a complex system of commands that interact with objects. A player typing eat the little cake
would be parsed into the eat
command, find a little cake
object in the current scope, check for an eatable
property, and enact some result, either a default player.name+"eats the"+subject.name
or some custom interaction provided by the object.
A MUSH is a "shared hallucination", we avoid hard coded rules and interactions and let the users roleplay as they see fit. A player could /do eats the little cake
, /do shrinks down to the size of a mouse!
, and then go about pretending to be a tiny person until they got bored.
A WITCH script describes an object which can then be created in the MUD by users. How can these objects facilitate user defined interaction? The current spec has a hears
directive giving access to text i
(def words (string/split (slurp "/usr/share/dict/words") #"\n")) | |
(def words-trie | |
(reduce | |
(fn [trie word] | |
(assoc-in trie (vec (cons (count word) word)) {})) | |
{} words)) | |
(defn keys-in [tree] | |
(if (map? tree) |