Aug 28, 2012, 05:21 AM

suppose i have a graph with 3 nodes like:

that form a boardgame.

every edge has a color.

a pawn can move from node to node accordingly to a color from a dice roll.

i don't know where to start implementing this, or if there is a easy solution for this problem, perhaps i can add nodes between edges giving weight 0.5 instead of 1, but i didn't like that solution because the added nodes are not playable nodes (but only support to arrive at the legal node)

can someone give me an hint?

thanks

that form a boardgame.

every edge has a color.

a pawn can move from node to node accordingly to a color from a dice roll.

i don't know where to start implementing this, or if there is a easy solution for this problem, perhaps i can add nodes between edges giving weight 0.5 instead of 1, but i didn't like that solution because the added nodes are not playable nodes (but only support to arrive at the legal node)

can someone give me an hint?

thanks