| | |
8 puzzle solver
Please support our Game Development advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#3 Nov 9th, 2009
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.
SEO Company India - Solid Radicle offers SEO, SEM (PPC). SMO, SEO Strategy, Website Analytics, SEO Content Development and Internet Marketing Consulting.
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
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 !!!
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 !!!
![]() |
Similar Threads
- 8 Puzzle using A_star with Manhattan heuristic (Java)
- Sudoku (C++)
- 8 puzzles (C)
- Sudoku (C++)
- Menu in C++ (C++)
- Soduku puzzle solver (C++)
- a puzzle solver design (Computer Science)
Other Threads in the Game Development Forum
- Previous Thread: Free Game Script
- Next Thread: OpenGL selection 64+ objects
Views: 825 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Game Development
3d advertising ai algorithm ban c++ cambridge camera censorship china competition console development engine fov fpx game gamedevelopment gameprogramming gamer games gaming gauntanamo government graphics idaho in-gameadvertisement intel intellectualproperty l-systems laracroft larrabee lindenmayer live manhunt math mathematics matrix mercenaries microsoft mmorpg modded modern-warfare msn multicore naked news nintendo obama opengl palin physics pirate playstation politics processor projection ps3 rpg search selection software sony spooks spy stephenhawking stocks studio technology terrorism tombraider uk videogame web wii world-of-warcraft xbox xbox-live xbox360





