package brawl // Decode reads one input character: the move (a direction 0..15 or Still) // and the action. ok is false for a character that isn't an input. func Decode(c byte) (move, act int, ok bool) { if c >= 128 || decMove[c] < 0 { return Still, None, false } return decMove[c], decAct[c], true }