Flash0ver / F0.Minesweeper

Source of truth for a Blazor implementation of Minesweeper.
MIT License
6 stars 0 forks source link

feat(logic): implement basic functionality #9

Closed thomas-pemsel closed 4 years ago

thomas-pemsel commented 4 years ago

Heya! I think this could be some minimal game logic functionality that can be used by the server 😄 This implementation just adds the basic data classes which are needed, so that the server can create a Minefield. The Uncover method just returns a GameStatus "In Progress" and one cell with the given Location, is no mine and has "1" adjacent mine.

Apart from that, I changed the Easy/Medium/Hard difficulties to properties (were methods before).

I hope I did everything right so far (regarding our GitHub-Flow-Branching-ConventionalCommitting-Workflow 😜)

Closes #6 (... I guess 🙈)