Waving Hands: a browser duel after Bartle's 1977 game
SvelteKit 5 single-player version against a heuristic bot. The engine resolves all forty spells simultaneously as the rules describe, the ledger of gestures is the interface, and the duel is saved in the browser. Tester feedback rounds added per-hand planning, threat evidence, a result strip with one-time rule explanations, a phone layout and a structured rules page. Deploys as a static site behind Caddy. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
865555e911
38 files changed
+8112
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import type { Gesture } from './spells';
|
||||
|
||||
/** How a gesture is written in the ledger. A clap needs both hands; alone it is nothing. */
|
||||
export function glyph(g: Gesture, other: Gesture = 'C'): string {
|
||||
if (g === '>') return '†';
|
||||
if (g === '-') return '–';
|
||||
if (g === 'C' && other !== 'C') return '(C)';
|
||||
return g;
|
||||
}
|
||||
|
||||
export const GESTURE_SHORT: Record<Gesture, string> = {
|
||||
F: 'fingers',
|
||||
P: 'palm',
|
||||
S: 'snap',
|
||||
W: 'wave',
|
||||
D: 'digit',
|
||||
C: 'clap',
|
||||
'>': 'stab',
|
||||
'-': 'nothing'
|
||||
};
|
||||
Reference in new issue
Block a user