main.bend fails
raw source on the hub · import 0x3b876eed3a748ea7fba8a7834d3c610b/main.bend as Main
main.bend: Minesweeper in a window. ===================================
Build and run it:
bend main.bend -o minesweeper ./minesweeper
Left-click opens a square. Right-click flags one. Middle-click, or a
left-click on a number that already has all its flags, opens every
square around it at once. r deals a new board.
The status line is the window title, because the playfield fills the window: a 16x16 board of 32x32 tiles is exactly 512x512 pixels, and an Image is a quadtree over a square.
2 imports
import Base import ./game.bend as GM
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 |