How to let a player to move on a board(jpg)

I am going to write a game. The players at the game can walk on the board depends on shuffling the dice (from 1 - 6). I have already coded the board already, however, I feel confuse how I can interact with the player to the board.
For example, If player A gets 5, he can move for 5 blocks.
I feel confuse how I should code for setting the players on the board, since I just put a jpg on my code and shows the board when I run it.

Thanks ??? ??? ???

I’m gonna move this to newless cluebies, but…

I’m not really sure what you’re asking, but I get the feeling you’re wondering how to render your players and/or how to detemine the squares that they can move to?

Rendering players: In the same way you rendered your board as a jpg, you need a series of smaller jpgs to represent your players (like counters) which you’ll render on top on the current board. Each player should store its current position and use this to render it in the correct place.

Determining positions: You’ll probably need a path find algoirthm to determine the possible positions that a player can move to, googling for “A Star” should help you out.

Kev

[quote]You’ll probably need a path find algoirthm to determine the possible positions that a player can move to, googling for “A Star” should help you out.
[/quote]
I suggest you check out this:
http://www.informit.com/content/images/1592730051/samplechapter/1592730051c.pdf
Which is the example chapter of book called Developing games in Java (by David Brackeen).

Personally I havent read that chapter yet from the book, but the book itself is well written, so that it easy to understand it. So I bet Im not much mistaken if I say that that chapter is a good way to learn the path finding.

(the reason why I suggest that is, that in my opinion many of those first links from google are way too complicated to understand, atleast for me).