# Moving checkers,designing 3D die and rolling die using C

Page 1 of 1

## 1 Replies - 1045 Views - Last Post: 13 April 2009 - 10:01 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=98982&amp;s=d2382bcb7af7aea55535a1fd9afa9393&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 choupette-uz

Reputation: 0
• Posts: 1
• Joined: 13-April 09

# Moving checkers,designing 3D die and rolling die using C

Posted 13 April 2009 - 09:38 AM

Ive been asked to develop a backgammon game using C language. I don't know which code to use to move checkers and to roll die. I would appreciate to get some help.
Is This A Good Question/Topic? 0

## Replies To: Moving checkers,designing 3D die and rolling die using C

### #2 Martyr2

• Programming Theoretician

Reputation: 5376
• Posts: 14,285
• Joined: 18-April 07

## Re: Moving checkers,designing 3D die and rolling die using C

Posted 13 April 2009 - 10:01 AM

It is site policy that you have to first show a "best effort" attempt at solving the problem yourself before we can help. This means that we will NOT do your homework for you. If you can show us what you have done in an attempt to solve the problem (show us what code you have written so far) we can then assist you.

For die rolling and such, look up the use of the rand() function. A dice roll is pretty much the generation of a random number between 1 and 6.

So if you can put something together to show us some effort, we can then help you further.