Minesweeper game divided into two files: the game logic and the game’s minefield logic. Each function of each method in the minefield.rb file is detailed in the in-code comments.