Creating an algorithm to solve Number Match
Hey, I've recently discovered a new logical game called "Number Match".
Link to the game
Here is the set or rules describing it:
Any ideas how to approach this problem?
6 Replies
Check leetcode if it was there)
I've checked, nothing
Oh. Hard case
that'll be in a world of algorithms we call heuristics
you can do it one of two ways:
* check the board for any potential moves, evaluate the move plus one or two moves ahead and pick the best one (min-max strategy)
* check the board for any potential moves, and grade them not just on the immediate points but based on additional contxtual information you have about what those kinds of situations look like (general heuristics)
I would have to do exhaustive min-max for it to work. Some moves might not seem good at first but they can pay off later
i'd hate to see you design a chess engine then... :vplaugh:
truth is, this is probably a situation where you can't do perfect knowledge. so gather information and pick a best guess decision
notably: chess engines use a combination of the above two strategies