943,937 Members | Top Members by Rank

Ad:
Nov 8th, 2009
0

8 puzzle solver

Expand Post »
can you help me in making a 8 puzzle solver in c
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ammycoe is offline Offline
4 posts
since Nov 2009
Nov 8th, 2009
0
Re: 8 puzzle solver
1) explain what you mean
2) give us some code, we will only help when you put some effort in
Reputation Points: 35
Solved Threads: 32
Posting Pro in Training
leegeorg07 is offline Offline
428 posts
since Jul 2008
Nov 9th, 2009
0
Re: 8 puzzle solver
Click to Expand / Collapse  Quote originally posted by leegeorg07 ...
1) explain what you mean
2) give us some code, we will only help when you put some effort in
Yes. Please give us some code so that we can execute it. Thank you!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vireshs is offline Offline
1 posts
since Nov 2009
Nov 26th, 2009
0

The Roman Commander Game

Concepts: This game will give you the opportunity to work on your decision making and looping skills.

The Emperor of Rome is in desperate need of a commander to lead an attack against the Germanian Hordes. You approach the Emperor and tell him that you are willing to sacrifice your life for your country. The Emperor does not know who you are or what your name is, so he asks you.

Your army consists of 50 Archers, 25 Catapults, and 100 Swordsmen. Your scouts have told you that the Germanian army has anywhere from 20-70 Archers, 10-50 Catapults, and 50-150 Swordsmen.

You want more accurate numbers before you go into battle so you send the scouts out again and not to come back until they know the exact number of Archers, Catapults and Swordsmen the Germanian’s have.

The commander now has the option to send the Archers, the Catapults and the Swordsmen to the battle field. You do not have to send them all to engage in the battle, but it may be to your advantage to do so. Once the commander has sent the army to the battle field, they await the commander’s order to engage into combat.

The rules of the battle are as followed:
1) Each Catapult kills 2 Archers
2) Each Swordsmen kills 1 catapult
3) Each Archer kills 3 Swordsmen

As a programmer, you need to make sure that the commander never has less than 0 of each of the Archers, Catapults and Swordsmen.

Once the battle is over you send one of your scouts to the battle field to report back the damage that was done. Based upon his report, you will know if you were victorious, if there are no Germanian Archers, Catapults, or Swordsmen left, or if you were defeated, there are no Roman Archers, Catapults, or Swordsmen left.


help !!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pabibear is offline Offline
1 posts
since Nov 2009
Nov 26th, 2009
0
Re: 8 puzzle solver
so this is homework and you don't have any code, not even the smallest part?
Reputation Points: 35
Solved Threads: 32
Posting Pro in Training
leegeorg07 is offline Offline
428 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: Free Game Script
Next Thread in Game Development Forum Timeline: OpenGL selection 64+ objects





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC