deohgu / deohgu/minesweeper

Refactor `minecheck.js`

Open
#45 1 comment 0 reactions 0 assignees View on GitHub
low-priority refactoring
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Objective
Reduce size of code and / or break file into multiple smaller functions as per functional programming ideals.

## Ideas
- Implement the `Array.reduce()` method in order to not have to carry each iteration result as an argument
Currently function is called recursively, perhaps a function with the amount of times it needs to be called can be created and then it runs the `.reduce()` method on it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.