import { Effects } from '@typed/effects' ; import { UuidEnv } from '@typed/uuid' ; import { Grid , RandomIntEnv , Size } from '../model' ; import { addNewTile } from './addNewTile' ; export function * createNewGrid ( size ) { return yield * addNewTile ( yield * addNewTile ( { size , tiles : [ ] } ) ) ; }