stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

5h 2m 1s logged


Dev Vlog #10 β€” Added Minesweeper! πŸ’£


Hey everyone, welcome back to another WebOS update!

This time I made another classic game, Minesweeper.

Some lines of code to make the mines and tile revealing work, like:

const revealCell = (row: number, col: number) => {
  if (board[row][col].isMine) {
    setGameStatus('lost');
    return;
  }

  const newBoard = board.map((r) => [...r]);
  newBoard[row][col].isRevealed = true;

  setBoard(newBoard);
};

The game now has tile movement, merging tiles, and adding new tiles after each move.

it was too hard to set the tile screen and mines & it still have bugs , but its good for now and i am gona a ship it πŸ˜‹πŸ˜‹

0
13

Comments 0

No comments yet. Be the first!