Closed itaditya closed 4 years ago
This looks fun, I'll be working on this one
Would you like to show an error message if the query value is above 10?
@devTeaa no if the value is above 10, we then take 10 as value.
@itaditya I'm guessing @acagastya will work on this? Or this is still open?
@devTeaa I submitted a PR (#55), but I am still not sure why final_moves = moves * board_size
. Wouldn't that be injustice for those who had the largest board? Well, I have added boardSize in the state if someone wants to grow from it.
The issue is not assigned to anyone yet, so feel free to work on the code. You all can work on this together as well. GitHub has a co-author
feature.
@acagastya you are right, updated the formula in Issue Description. Also next time please comment on the Issue before starting working on PR like @devTeaa did.
Currently the board size if fixed to 10x10 grid. Let user specify the board size via url query params like
?size=8
.The upper limit of size should be
10
and the lower limit should be4
.To calculate the final number of moves to display on scoreboard use this formula
final_moves = moves * (11 - board_size)
.Reason- a 4x4 board can be solved in very few moves, so to make it fair for other people who played on 10x10 board.