(hand, hexes, colours)
| 107 | // KEYBOARD // |
| 108 | //==========// |
| 109 | export const registerColourPickers = (hand, hexes, colours) => { |
| 110 | for (let i = 0; i < hexes.length; i++) { |
| 111 | const hex = hexes[i]; |
| 112 | onkeydown(`${i + 1}`, () => (hand.colour = colours[hex])); |
| 113 | } |
| 114 | |
| 115 | onkeydown("q", () => (hand.hidden = !hand.hidden)); |
| 116 | }; |
| 117 | |
| 118 | //========// |
| 119 | // STATES // |