Skip to content

Documentation

Kris Baillargeon edited this page Feb 14, 2020 · 2 revisions

Minesweeper by Energy Marketing Company

Welcome to the Minesweeper by Energy Marketing Company wiki! Here you will find all documentation and function definitions.

Documentation

Full documentation coming soon! For now, below is a list of all current functions and objects.


Objects

Global Object ( field )

Board Object ( field.fieldObject )

Tile Objects ( field.fieldObject[x] )


Functions

clearBoardHtml();

populateField(x,y,bombs);

createBombLocations(field.numberTiles,field.numberBombs);

appendBombsToFieldObject();

getBombLocations();

appendTilesToPage();

createTileObject(cellNumber)

calcTiles(x,y)

returnTileHTML(tileObject)

testGame(x,y,bombs,iterations)