Crate twothousand_forty_eight

Crate twothousand_forty_eight 

Source
Expand description

a basic engine and move validator for the game 2048

Includes wasm bindings generated with wasm_bindgen

Modulesยง

board
Provides Board to hold game board data and tile to hold the values of the board tiles.
direction
Provides Direction to represent move directions
random
Pseudo-random number generation for game logic
rules
Rulesets for the game.
unified
Unified interface for parsing and validating all versions of the recording format.
v1
Interface version 1
v2
Interface version 2