Author Topic: Online Cricket Management Game  (Read 1340 times)

Offline unknown123

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Online Cricket Management Game
« on: September 15, 2007, 06:13:48 AM »
Hi

I am creating a online cricket management game where a user competes with other teams that are manged by other users from all around the world. The users will be able to control their finances, coaching their team by hiring coaches, buying and selling players from other users to improve their team. The managers (users) will be able to watch a live scorecard & commentary as the game is played.

Something similar www.cricketclubmanager.com & www.battrick.org to this but better.

I have already have started designing my website, so far i have done the main pages of the website, fully working database and the login system using PHP/MySql.

The part that I am stuck on is the coding for the online game itself, which I have not started at all. I have no idea how i am going to all the calculations for the game, the league system, player stats, training players.   Can anyone help me with this or head me the right direction.

Thanks In Advance

Offline Zeggy

  • Global Moderator
  • Level 35
  • *****
  • Posts: 1,187
  • Reputation: +13/-4
    • View Profile
Re: Online Cricket Management Game
« Reply #1 on: September 15, 2007, 11:54:55 AM »
I'm guessing you mean the calculations for stats and matches and stuff?
It's all maths, so you might want to start with some basic formulas, such as:

points = coaches + player_stats + wins - losses

Then you can elaborate on your formulas, and use them in other calculations.

Offline unknown123

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Re: Online Cricket Management Game
« Reply #2 on: September 16, 2007, 10:21:56 AM »
When there is a fixture between two teams, i want that game to start at a specific time, for example, every Saturdays at 11am and i want the match to last around 5 - 6 hours in real time.  Also, when the match is being played, i want the scores to calculated automatically over the period of 5 - 6 hours. 

The scores that are being generated automatically will depend on the players.  For example, a player that isn't that good will score less runs but a better players will more runs, same with the bowlers, players that aren't that good will concede more runs than better players.

This are the parts that I am struggling with at the moment.  If someone can help me with the coding or head me the right direction, it would be appreciated.

Thanks in advance.

Offline Zeggy

  • Global Moderator
  • Level 35
  • *****
  • Posts: 1,187
  • Reputation: +13/-4
    • View Profile
Re: Online Cricket Management Game
« Reply #3 on: September 16, 2007, 10:55:22 AM »
Is the actual timing of the code a problem?
To execute code at certain times, you can use cron jobs.

The scores that are being generated automatically will depend on the players.  For example, a player that isn't that good will score less runs but a better players will more runs, same with the bowlers, players that aren't that good will concede more runs than better players.

Well, it depends on what you mean by good. What affects the players and how are they better? Does it depend on their stats, their value, their win/loss ratio?

Offline unknown123

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Re: Online Cricket Management Game
« Reply #4 on: September 16, 2007, 11:22:52 AM »
On the players value, for example, batting/bowling skill, stamina, concentration/consistency.
« Last Edit: September 16, 2007, 01:24:11 PM by unknown123 »

Offline unknown123

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Re: Online Cricket Management Game
« Reply #5 on: September 21, 2007, 07:09:59 AM »
$batter = rand(0,2);

0 = 50%
1 = 30%
2 = 20%

How can i apply the percentages so that the number 0 will come out on the browser 50% of the time and so on...

Offline Dasein Fiasco

  • Level 15
  • *
  • Posts: 132
  • Reputation: +2/-0
    • View Profile
    • Travis Dunn
Re: Online Cricket Management Game
« Reply #6 on: September 21, 2007, 10:49:55 AM »
$batter = rand(0,2);

0 = 50%
1 = 30%
2 = 20%

How can i apply the percentages so that the number 0 will come out on the browser 50% of the time and so on...

Use a full 1-100 range and then check the value with an if/else or switch statement.
Personal Site: www.travisdunn.com
There is neither speech nor language but their voice is heard among them

Offline unknown123

  • Level 6
  • *
  • Posts: 26
  • Reputation: +0/-0
    • View Profile
Re: Online Cricket Management Game
« Reply #7 on: September 21, 2007, 10:56:28 AM »
Thanks

Offline juniorm

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Re: Online Cricket Management Game
« Reply #8 on: September 24, 2007, 04:41:25 PM »
Hi,

I own a cricket game, and if your interested, I need a programmer to work on it.

The game is cricketmanager.co.uk

If that sounds better than coding from scratch, drop me an email:

junior@catgames.com


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal