Hockey Game Development (C#)

  • Thread starter Thread starter tomtiv
  • Start date Start date
T

tomtiv

Hi All,

I am starting to build a hockey game simulator. I am looking for any
resources you know of to help me build this application, Specifically
these topics.

- AI for game play (Text Based)
- Game schedule generation.
- Statistic management.

Also I am having a little trouble with the logic to generate all the
players attributes. I am using the code below.

Random random = new Random(System.Environment.TickCount);
//System.TimeSpan.FromTicks( );
for (Int32 i = 0; i < arr.Length; i++)
{
Int32 iOverall = 0;
Int32[] arrAttributeString = new Int32[Counter];
for (Int32 x = 0; x < arrAttributeString.Length - 1;
x++)
{
arrAttributeString[x] =
random.Next(_iMinAttributeValue, _iMaxAttributeValue);
iOverall += arrAttributeString[x];
}
arrAttributeString[arrAttributeString.GetUpperBound(0)]
= iOverall / Counter - 1;
arr.SetValue(arrAttributeString, i);
}
return arr;

This code works but the attributes don't compare to some other
simulatore i have looked at.
An example is if a player has 4 attributes (50, 50 75, 65) his overall
value would be 60.

I was hoping to see how other developers create this functioanlity.

Thanks
Thomas
 
Also I am having a little trouble with the logic to generate all the
players attributes. I am using the code below.

Most games based on real-life sports have a database of stats for
all of the players and/or teams. Someone (one of the designers) will
sit down and input all of the names & data for the players. That data
includes name, uniform #, physical data (e.g. hair/skin color), and
the various statistics.

Nathan Mates
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top