8 puzzle solver

Please support our Game Development advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2009
Posts: 1
Reputation: ammycoe is an unknown quantity at this point 
Solved Threads: 0
ammycoe ammycoe is offline Offline
Newbie Poster

8 puzzle solver

 
0
  #1
Nov 8th, 2009
can you help me in making a 8 puzzle solver in c
SHARY
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 406
Reputation: leegeorg07 is an unknown quantity at this point 
Solved Threads: 31
leegeorg07's Avatar
leegeorg07 leegeorg07 is offline Offline
Posting Pro in Training
 
0
  #2
Nov 8th, 2009
1) explain what you mean
2) give us some code, we will only help when you put some effort in
don't judge me because I'm a year 8!

'it is better to fight for something than to live for nothing'General George S Patton
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: vireshs is an unknown quantity at this point 
Solved Threads: 0
vireshs vireshs is offline Offline
Newbie Poster
 
0
  #3
Nov 9th, 2009
Originally Posted by leegeorg07 View Post
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!
Hire Web Developer | IT Outsourcing Company that I recommend.
SEO Company India - Solid Radicle offers SEO, SEM (PPC). SMO, SEO Strategy, Website Analytics, SEO Content Development and Internet Marketing Consulting.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: pabibear is an unknown quantity at this point 
Solved Threads: 0
pabibear pabibear is offline Offline
Newbie Poster

The Roman Commander Game

 
0
  #4
29 Days Ago
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 !!!
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 406
Reputation: leegeorg07 is an unknown quantity at this point 
Solved Threads: 31
leegeorg07's Avatar
leegeorg07 leegeorg07 is offline Offline
Posting Pro in Training
 
0
  #5
29 Days Ago
so this is homework and you don't have any code, not even the smallest part?
don't judge me because I'm a year 8!

'it is better to fight for something than to live for nothing'General George S Patton
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Game Development Forum


Views: 832 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Game Development
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC