• Create Account

# archanian

Member Since 27 Jul 2012
Offline Last Active Jul 12 2013 04:49 AM

### In Topic: Sports Simulator

28 April 2013 - 10:53 PM

Hi there,

I have created a hockey match simulation engine as part of an online hockey management game I built, it works pretty much how you have described only it runs each second rather than each minute. I think you're on the right track.

- All possible events are defined and given a baseline probability between 0-1. Each team has its own set of these event-probability pairs.

- Probability ratios are adjusted using formulas taking into account the ratings of the two teams.

- Each second of the game a "dice roll" is performed to determine which event (if any) has occurred.

- If an event occurs it breaks into a separate simulation whereby the players involved are selected (weighted based on their skills), and possibly further events are then tested for (ie. an attacking play may result in a shot on goal, a hit may result in a turnover, etc.)

- User-defined strategies modify the ratings for their team, thereby affecting event probabilities.

The trick lies in defining and tweaking appropriate probability ranges for each event, and coming up with formulas that result in the right probability given the ratings for each team you are comparing.

### In Topic: strategy game with map and charaters in sfml ?

04 February 2013 - 09:53 PM

Ahhh, well played sir

If you have any samples of your game or concepts you are working through, I would love to see/hear about them

### In Topic: strategy game with map and charaters in sfml ?

02 February 2013 - 02:34 AM

Yes this is completely possible using SFML, I am doing this exact same thing, building a 2D tile-based strategy game using SFML. So far I've found it to be a really good library to use for this purpose. Good luck in your efforts!

### In Topic: need some pointers :D

12 December 2012 - 09:47 PM

A couple of pointers:

"new" is a keyword and is used for creating an instance of a class. You can't assign something to it.
I believe what you're looking for instead of this:
[source lang="csharp"]new = player();[/source]
is something like this:
[source lang="csharp"]Player somePlayer = new Player();[/source]

Additionallty, make sure you end each line with a semicolon.

This bit:
[source lang="csharp"]if darkknight health = 0;[/source]
needs a couple of adjusments. Firstly, you need to use dot syntax for accessing an object's properties. If health is a property of your darkknight object, you access it via "darkknight.health". Secondly, you need to put the if condition inside brackets. Thirdly, don't put a semicolon at the end (it won't break compilation, but the code block following your "if" will never run). What you want is something like this:
[source lang="csharp"]if (darkknight.health == 0)[/source]

This:
[source lang="csharp"]Vec.destroy kyurem();[/source]
From your description I gather that "destroy" is a method of Vec? In which case you need to call it as a method, with "kyurem" as a parameter like so:
[source lang="csharp"]Vec.destroy(kyurem);[/source]

### In Topic: Microsoft Visual Studio 2012 for Web?

25 November 2012 - 04:26 PM

If you're wanting to use the features of Visual Studio, then the .NET framework would be your natural choice. I wouldn't say this is the best option, but it's a very powerful one for sure. Node.js is a great choice for game development, in which case VS is not necessary. I assume you're talking about TFS as the collaboration tool? It's not bad, the new version is much improved over previous ones ...

PARTNERS