RSS iconTwitter iconFacebook icon

The Trek BBS title image

The Trek BBS statistics

Threads: 138,200
Posts: 5,346,161
Members: 24,604
Currently online: 556
Newest member: LanCo96

TrekToday headlines

Funko Mini Spock
By: T'Bonz on Jul 23

IDW Publishing Comic Preview
By: T'Bonz on Jul 23

A Baby For Saldana
By: T'Bonz on Jul 23

Klingon Beer Arrives In The US
By: T'Bonz on Jul 22

Star Trek: Prelude To Axanar
By: T'Bonz on Jul 22

Abrams Announces Star Wars: Force For Change Sweepstakes
By: T'Bonz on Jul 22

New Funko Trek Figure
By: T'Bonz on Jul 21

Saldana As A Role Model
By: T'Bonz on Jul 21

San Diego Comic-Con Trek Fan Guide
By: T'Bonz on Jul 21

Cumberbatch As Turing
By: T'Bonz on Jul 21


Welcome! The Trek BBS is the number one place to chat about Star Trek with like-minded fans. Please login to see our full range of forums as well as the ability to send and receive private messages, track your favourite topics and of course join in the discussions.

If you are a new visitor, join us for free. If you are an existing member please login below. Note: for members who joined under our old messageboard system, please login with your display name not your login name.


Go Back   The Trek BBS > Entertainment & Interests > Science and Technology

Science and Technology "Somewhere, something incredible is waiting to be known." - Carl Sagan.

Reply
 
Thread Tools
Old May 31 2014, 01:55 PM   #1
ThunderAeroI
Rear Admiral
 
ThunderAeroI's Avatar
 
Location: Perpetually being chased by airplanes
Math Grouping Question

When I normally have a math type question I post them in this forum so this may sound misplaced, but give it a shot.

I am playing a video game where there are different soldiers that have different attacks / heath / etc. My army can only be so big maxed at a number X. Each soldier takes up a different amount of that army, Y.

How do I figure out what the proper mix of soldiers is to maximize my attack and health without just randomly trying different configurations?
__________________
No Where to be found, but everywhere you are - I'll be there looking for ways to save your life.
ThunderAeroI is offline   Reply With Quote
Old June 1 2014, 06:37 PM   #2
LaxScrutiny
Commodore
 
Location: Toronto, Canada
Re: Math Grouping Question

First, use Excel, it is much easier, and then you can play with the numbers as much as you want.

Decide for yourself how important health is vs attack. Generally I would rank 1 point of health = 1 point of damage, however that can vary with mass. Meaning a single unit with high health will continue to do max damage until dead. A group with low health will see the damage reduce as each unit is killed. Without seeing the game, it's hard to say which will be better.

Most games will also rock/paper/scissors, so your choices may have a bonus against certain units.

So, you will have a chart that will show:
Unit; Cost; Recruit Time; Damage; Health; Total of Damage + Health; Ratio of Total:Cost

Find the unit that gives the best ratio, keeping in mind your production rate (cost and time.)

This will be the body of your army. Space left over fill with the next best smaller unit.

All that said, bonuses against certain other units and movement speed, range, and attack speed will also factor in.
LaxScrutiny is offline   Reply With Quote
Old June 1 2014, 07:01 PM   #3
JarodRussell
Vice Admiral
 
JarodRussell's Avatar
 
Re: Math Grouping Question

http://en.wikipedia.org/wiki/Knapsack_problem
__________________
lol
l
/\
JarodRussell is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +1. The time now is 03:22 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
FireFox 2+ or Internet Explorer 7+ highly recommended.