Hi y'all!
I'm trying to adapt a board game in which players can move a certain number of cases depending on dice rolls, but for now on paper i'm stumped by how i could program a function that'd check possible paths. I know next to nothing on pathfinding algorithms, so i figured you might have ideas regarding what i could use here and how to implement it. I want to be able to both show the player where a dice roll could take them (with a D4 for instance) and the different spaces they can land on once the roll is done, while taking into account dynamic obstacles and path limitations. I've heard about A* algorithms, but i'm not sure it'd really be the best suited here (sounds a tad overkill too doesn't it?)
Thanks for the help!
I'm trying to adapt a board game in which players can move a certain number of cases depending on dice rolls, but for now on paper i'm stumped by how i could program a function that'd check possible paths. I know next to nothing on pathfinding algorithms, so i figured you might have ideas regarding what i could use here and how to implement it. I want to be able to both show the player where a dice roll could take them (with a D4 for instance) and the different spaces they can land on once the roll is done, while taking into account dynamic obstacles and path limitations. I've heard about A* algorithms, but i'm not sure it'd really be the best suited here (sounds a tad overkill too doesn't it?)
Thanks for the help!
