Welcome to Mj’s GitHub Pages
Owned by Mathew Jerard Paglinawan (Mj)

Chill space
Welcome to my chill space, here you can see my favorite songs.
| Song | Artist | 
|---|---|
| 1. Space song | Beach house | 
| 2. Passionfruit | Drake | 
| 3. Here we go… again | The weekend, Tyler the creator | 
| 4. Untitled | Rex Orange County | 
| 5. Moments | Micah Edwards | 
| 6. Emiliana | Ckay | 
| 7. More than a woman | Bee Gees | 
| 8. Fine line | Harry Styles | 
| 9. Am I Dreaming | Lil Nas X, Miley Cyrus | 
| 10. Spotless mind | Emily Lind | 
| 11. Moonlight | Ariana Grande | 
| 12. Show me how | Men I trust | 
| 13. All too well | Taylor Swift | 
| 14. Something About you | Eyedress, Dent May | 
| 15. The less I know the better | Tame Impala | 
My Favorite Albums
More songs that I love can be found on

import random
class Minesweeper: def init(self, rows, columns, mines): self.board = [[’.’ for j in range(columns)] for i in range(rows)] self.mines = set() while len(self.mines) < mines: i = random.randint(0, rows - 1) j = random.randint(0, columns - 1) if (i, j) not in self.mines: self.mines.add((i, j)) self.rows = rows self.columns = columns self.mines = mines self.game_over = False self.flag_mode = False
def display(self):
    for i in range(self.rows):
        for j in range(self.columns):
            print(self.board[i][j], end=' ')
        print()
    print()
def count_mines(self, row, col):
    count = 0
    for i in range(row-1, row+2):
        for j in range(col-1, col+2):
            if 0 <= i < self.rows and 0 <= j < self.columns:
                if (i, j) in self.mines:
                    count += 1
    return count
def play(self, row, col):
    if (row, col) in self.mines:
        self.game_over = True
        print("Boom! You lost.")
    else:
        count = self.count_mines(row, col)
        self.board[row][col] = str(count) if count else ' '
def main(): rows = int(input(“Enter number of rows: “)) columns = int(input(“Enter number of columns: “)) mines = int(input(“Enter number of mines: “)) game = Minesweeper(rows, columns, mines) while not game.game_over: game.display() row = int(input(“Enter row: “)) col = int(input(“Enter column: “)) game.play(row, col)
if name == “main”: main()

