C++ Simple Game.

This is a discussion on C++ Simple Game. within the C++ Programming forums, part of the General Programming Boards category; It is required to create a simple two dimensional predator prey game The game is composed of the following 1) ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    1

    Talking C++ Simple Game.

    It is required to create a simple two dimensional predator prey game
    The game is composed of the following
    1) 2 dimensional grid of size 20*20 cells closed grid.no creatures are allowed to move outside the grid

    2) Predators whom move across the gird attempting to eat prey

    3) There are different types of predators snake , scorpions

    4) There are different types of preys bugs , ants , worms

    5) Snake can eat worms and bugs but cannot eat worms

    6) Scorpions can eat worms and ants

    7) If the prey survives for 3 moves it breeds , adding a new prey of the same type in the cells around it (either top , left , right or bottom), if there is no empty cell no breeding occurs

    8) The prey can move randomly up , down , left and right, if the neighboring cell in the selected direction is occupied, or would move the ant outside of the grid. Then it stays in the same location

    9) The predator can move a step and if there is a prey around it (left, right , top or button) of proper food he eats it ,

    10) The predator can starve and die if for 3 move it didn’t eat

    11) The predator can breed a new predator of the same type if it survives for 10 moves in the cells around it (either top , left , right or bottom), if there is no empty cell no breeding occurs

    12) During one turn … predetors move then eat breed (if possible) then preys move and preed if possible

    13) You should display this using chacters “S” for snake , ‘X’for scorpion , “B”for bugs, “A”for ants,”W”for worms

    14) You programs should request from the user the user for the snake move and the scorpion move , left, right, top or buttom

    15) Initialize the game with 1 snake, 1 scorpion, 30 ants, 30 worms and 30 bugs. There location in the grid are randomly selected

    graphical user interface and UML diagrams are required.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,148
    O_o

    Um... congratulations?!

    Soma

  3. #3
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Thank you for the information.

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Quote Originally Posted by united07 View Post
    5) Snake can eat worms and bugs but cannot eat worms
    I'm sooooooooooooooo confused....
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by Dino View Post
    I'm sooooooooooooooo confused....
    Wow I can't believe you actually read that post...

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    Quote Originally Posted by united07 View Post
    5) Snake can eat worms and bugs but cannot eat worms
    Quote Originally Posted by Dino View Post
    I'm sooooooooooooooo confused....
    Its simple. The snake can eat worms and bugs, but the snake can't eat worms alone. :P

  7. #7
    ...and never returned. StainedBlue's Avatar
    Join Date
    Aug 2009
    Posts
    168
    Looks like it'll be an all-nighter to finish this programming 201 exam!
    goto( comeFrom() );

  8. #8
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    435
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  9. #9
    ...and never returned. StainedBlue's Avatar
    Join Date
    Aug 2009
    Posts
    168
    Man I need to start up a site to do people's homework, think ELance for homework.

    I'll take 10% of all transactions, who's with me?
    goto( comeFrom() );

  10. #10
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Quote Originally Posted by StainedBlue View Post
    Man I need to start up a site to do people's homework, think ELance for homework.

    I'll take 10% of all transactions, who's with me?
    Sounds like rent a coder to me. Though students are usually too poor to pay for that.
    It's amazing how many people are willing to do work for so little money though. I mean, I've seen 20-hour projects go for 20 dollars. I wouldn't even do it for 200.

  11. #11
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    435
    Quote Originally Posted by StainedBlue View Post
    Man I need to start up a site to do people's homework
    You mean that's not what this site is?
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  12. #12
    The larch
    Join Date
    May 2006
    Posts
    3,573
    It's amazing how many people are willing to do work for so little money though. I mean, I've seen 20-hour projects go for 20 dollars. I wouldn't even do it for 200.
    If it's interesting/challenging for you and you'd do it as a hobby / for learning experience, why not charge a couple of bucks for it?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  13. #13
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    I'd do people's homework for cash. What the heck. I might just finance my retirement that way.

    Just don't make me try to teach them via emails or instant or private messaging.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  14. #14
    ...and never returned. StainedBlue's Avatar
    Join Date
    Aug 2009
    Posts
    168
    Quote Originally Posted by Dino View Post
    I'd do people's homework for cash. What the heck. I might just finance my retirement that way.

    Just don't make me try to teach them via emails or instant or private messaging.
    Well doing peoples homework certainly wont teach them anything. But at least we can profit off these future java coders!
    goto( comeFrom() );

  15. #15
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    It doesn't look like homework assignment, rather than a task. For a competition, maybe?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple game with timing issues atm
    By Swarvy in forum Game Programming
    Replies: 1
    Last Post: 08-06-2009, 09:52 PM
  2. Creating a simple Windows game
    By ejohns85 in forum C Programming
    Replies: 1
    Last Post: 05-22-2009, 12:46 PM
  3. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 06:58 PM
  4. Whats a very simple but good game i can try to make?
    By bluehead in forum C++ Programming
    Replies: 2
    Last Post: 11-06-2001, 08:24 PM
  5. Replies: 1
    Last Post: 11-06-2001, 01:15 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21