Results 1 to 5 of 5

Math Help - Videogame math (ratios, algebra)

  1. #1
    Newbie
    Joined
    Jun 2014
    From
    United States
    Posts
    4

    Videogame math (ratios, algebra)

    Hey guys,

    I think this problem belongs to advance algebra. I know it involves some sort of ratios. I'm trying to figure out the equation or formula to this.

    Let's say that one army attacks another army in a video game. Like, one country invading another country. Player 1 attacks with certain offense points. And player 2 defends with certain defense points.

    Here is the information I have:
    If player 1 attacks with 15,000 offense points, and player 2 defends with 20,000 defense points, the outcome of this battle is such that player 1 will fail the attack because player 1 will lose 55% of army (that were doing the attacking) and player 2 will lose 45% of army (that were defending)

    How do I come up with an equation that lets me enter the offense points from player 1 and the defense points from player 2, and then that equation lets me solve how much troops player 1 loses and player 2 loses?

    Thanks. I've been spending days on this problem. I can't solve it!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Nov 2010
    Posts
    1,935
    Thanks
    784

    Re: Videogame math (ratios, algebra)

    Giving a single battle's statistics is not enough to figure out an entire system.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2014
    From
    United States
    Posts
    4

    Re: Videogame math (ratios, algebra)

    Hi SlipEternal, What if I were to have two battle statistics? How would this be set up? Is it a system of linear equations? Thanks!
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Apr 2005
    Posts
    16,444
    Thanks
    1863

    Re: Videogame math (ratios, algebra)

    Given any finite number of data points there exist an infinite number of formulas that will give those points. If you assume the formula is linear then two data points suffice.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Jun 2014
    From
    United States
    Posts
    4

    Re: Videogame math (ratios, algebra)

    Yes I do assume this is linear. But it seems to involve ratios. My mind can only go so far
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 8
    Last Post: June 26th 2014, 03:00 AM
  2. Algebra (Volume, Ratios)
    Posted in the Algebra Forum
    Replies: 9
    Last Post: March 4th 2013, 09:36 PM
  3. Replies: 17
    Last Post: October 11th 2010, 05:44 PM
  4. Replies: 4
    Last Post: February 24th 2010, 07:35 AM
  5. Math trivia: Ratios
    Posted in the Algebra Forum
    Replies: 5
    Last Post: January 21st 2010, 01:05 PM

Search Tags


/mathhelpforum @mathhelpforum