1 Replies - 782 Views - Last Post: 13 April 2009 - 10:01 AM Rate Topic: -----

#1 choupette-uz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4333
  • View blog
  • Posts: 12,128
  • 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. :)
Was This Post Helpful? 1

Page 1 of 1