game.bend fails
raw source on the hub · import 0x3b876eed3a748ea7fba8a7834d3c610b/game.bend as Game
Game: the state, the input, and the frame. ==========================================
The state is pure Data. Every click returns a new state, so a move is a value you can print, compare or replay. main.bend runs it in a window; demo.bend runs the same functions over a scripted list of events and prints the result.
The board is not laid out until the first click. That click sets the safe cell, so it can never be a mine and always opens a region.
5 imports
import Base import ./grid.bend as G import ./cell.bend as C import ./board.bend as B import ./art.bend as A
The reader could not load this file (at 0x3b876eed3a748ea7fba8a7834d3c610b/board.bend:29). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
28 | Won{}
29>| Lost{}
| ^^^^
30 |