buscaminas-typescript's Introduction
buscaminas-typescript's People
buscaminas-typescript's Issues
add Unmark Flag - Use Case
we need add unmark flag use case 😺
Create base code for Server
Create Eslint rule for import direction Domain > Use Cases > Infraestructure
move props validations to other file in Use Cases
Error when generating cells in start game use case
The position of the cells is not created correctly, for example if rows = 3 and columns = 2, it's generating:
0,0 | 1,0 | 2,0
0,1 | 1,1 | 2,1
But it should be created like this:
0,0 | 1,0
0,1 | 1,1
0,2 | 1,2
Extract similar functions in a common util
(@danielglobant) I did a code similar to this, we can extract that in a common util
export const samePosition = ({ position: [column, row] }: IPosition) =>
column === columnMarked && row === rowMarked;
Originally posted by @danielglobant in #5 (comment)
Internal state of cell
The use cases functions can’t return information about where are the bombs in the board, the bombs model and neighbors bombs counter should be internal state save in database.
For this reason I think that cell model needs a new property, it could be called state having 3 possible values: undefined, “IS_BOMB” and “IS_NOT_BOMB”. Also needs a property for the quantity of bombs around the cell.
Create interface for avoiding coupling between data repository and use cases
Remove use of jest.mockImplementation in mark flag test
add Expose Cell - Use Case
We need add "expose cell" use case 😸
Create readme about the project
Tests of Expose Cell - Use Case should not depend on another use case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.