- 🌱 I'm currently learning React and all technologies involving HTML5 for Front-End development.
rodrigoadsilva / minesweeperjs Goto Github PK
View Code? Open in Web Editor NEWA minesweeper created using HTML, CSS and Javascript
A minesweeper created using HTML, CSS and Javascript
No arquivo https://github.com/rodrigoadsilva/MinesweeperJS/blob/master/main.js
existe mistura de nomes em inglês e em português, por exemplo: numberBombs
e listaBombas
.
O ideal é que se mantenha um padrão.
Sugestões de substituições:
listaBombas -> bombList
bombaSorteada -> randBomb
O método makerField
no arquivo https://github.com/rodrigoadsilva/MinesweeperJS/blob/master/main.js parece ser uma ótima oportunidade para se utilizar o Design Pattern Build.
http://luizricardo.org/2013/08/construindo-objetos-de-forma-inteligente-builder-pattern-e-fluent-interfaces/
Esse design pattern permite que se utilize a construção de um field/board da seguinte maneira:
var builder = new FieldBuilder();
var field = builder.WithRows(10)
.WithColumns(10)
.WithBombs(4)
.WithFieldId("minefield")
.Build();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.