Board game with two robots

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
Jessica
x Girl Power x
x Girl Power x
Posts: 35
Joined: Thu Feb 21, 2013 1:52 am

Board game with two robots
Jessica
I need to code a game where two robots are trying to move from a start point (one corner of a square grid) to a destination point (a corner of square grid that is diagonally across from its start point). The robots begin on different corners that share an edge of the grid.

Using a limited hand of cards the players will command their robots to move forward or backwards in a straight line from 1 to 3 spaces, rotate left or right 90 degrees, or turn around. The robots will also fire a laser that may damage their opponent.

The locations on the square grid may move (or push) the robot, fire lasers at the robot, or rotate the robot.

Some squares have walls that block robot movement and some squares are pits that will kill a robot if they should move (or be moved) onto them.

If a robot moves onto a location where the other robot is; both will robots suffer a point of damage and the robot moving will push the other robot in the direction of movement. (If that robot cannot be pushed (prevented by a wall) then neither robot finishes movement but both still take damage.

I need major help with this.


1. Any hints on how I should represent the health of the robots?
2. From a deck of cards a player gets 5 cards. To begin the game each player draws a single card. The player with the highest speed value will begin. That player will choose a corner of the grid as the start position of her robot (meaning also that the destination will be the diagonally opposing corner.) How would I represent that?
3. Anything else that might be helpful?
4. Is there a name for this kind of game? If I knew the name, I might be able to search online for additional help

I need ALL answers by tonight before 12 pm EST. Thanks.
User avatar
kolega28
VIP - Donator
VIP - Donator
Posts: 338
Joined: Mon Jan 17, 2011 7:12 pm

Re: Board game with two robots
kolega28
Well, it is kind of a TCG and normal card game, you should probably just have a bar above the robots' head for the health and I think it should just say something like "Player 1 Starts" on the screen then colour in the square they choose. That is all the help I can provide.
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Board game with two robots
CodenStuff
Is this a school assignment? lol

You could use pictureboxes, GDI+, DirectX..loads of different ways to do all that but I don't think you left enough time to do what you asked for :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Jessica
x Girl Power x
x Girl Power x
Posts: 35
Joined: Thu Feb 21, 2013 1:52 am

Re: Board game with two robots
Jessica
Uh I don't think I know how to do that.

I'm just completely clueless on how to START. I need some tips and guidelines...what I have attached was due last week but my class is going to do a continuation of the game we're supposed to code.

Lab06 (last week's) can be downloaded here for more details: http://chenschool.elementfx.com/phpBB3/ ... 3767#p3767

Not asking people to code the whole thing for me, I just need to be guided in the right direction, with hints and suggestions. I don't have to make this perfect, I just want to get a good enough grade so I don't totally fail the class because I failed these labs.


EDIT: Okay, today's lab is slightly different.
I have this:
Code: Select all
  Private Sub mapDisplay(ByVal map(,) As String)
    Dim gpr As Graphics = gridDsp.CreateGraphics()
    Dim w As Integer = gridDsp.Width \ (map.GetUpperBound(0) + 1)
    Dim h As Integer = gridDsp.Height \ (map.GetUpperBound(0) + 1)
    Dim x As Integer = 0
    For row As Integer = 0 To map.GetUpperBound(0)
      Dim y As Integer = 0
      For column As Integer = 0 To map.GetUpperBound(1)
        gpr.DrawLine(Pens.Black, x, y, x + w, y)
        gpr.DrawLine(Pens.Black, x, y, x, y + h)
        gpr.DrawLine(Pens.Black, x + w, y + h, x + w, y)
        gpr.DrawLine(Pens.Black, x + w, y + h, x, y + h)
        y += h
      Next
      x += w
    Next
    gpr.Dispose()
  End Sub
I have to modify the ‘mapDisplay’ subroutine so that it will show a graphical representation of the board with all of its features.

I'm not sure what that means...can someone explain?

EDIT #2: I'll figure it myself and get back to here...
4 posts Page 1 of 1
Return to “Coding Help & Support”