2 ms·
> I find this interesting, mostly because if the generation of pieces is truly random, eventually you will lose That's correct, but Tetris specifies that piece
by munificent 14y ago
> I find this interesting, mostly because if the generation of pieces is truly random, eventually you will lose
That's correct, but Tetris specifies that pieces are not chosen using a sequence of random pieces selected with equal probability. Instead, it uses "selection without replacement".
Think of it as you get one of each piece and stuff them in a bag. Pull a piece from the bag. That's the next piece. Do not put it back in (hence "without replacement"). Repeat until the bag is empty then refill the bag.