![]() |
| ||||||||
| 22 Yards - The Battleground Official forum for 3D cricket simulation game developed by Codegen Studios. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| 22 Yards Project Manager/Developer Alias: Das Join Date: Sep 2009 Biography: Developer Location: Bangalore
Posts: 54
vCash: 500
![]() | Hello, I am starting this new thread here and not in any of the sub threads because the modules we will be discussing here will be used in both. The idea here is to start coding specific things that are part of the game, but not related to other parts of the game. The advantages of these modules is that we can code them separately and later integrate them. The first thing that comes to my mind is DuckworthLewis method. So we are looking for someone to code the Duckworth-Lewis method for us. As of now the requirement is to convert the algorithm to Compilable code. So interested candidates can reply here or mal me @das.vicky@gmail.com
__________________ Project Manager/Developer - 22Yards 22yards.blog.com |
| | |
| | #2 |
| Administrator | Just wanted to add something. Please dont with other websites for the methods like D/L and other stats. Please use Wikipedia as it is updated. I would like to say sorry for not being online as there are some serious problems with my Internet connection. It will be alright on monday-tuesday. I am currently using EDGE which takes me lot of time to open website and it costs me too much. However, you can still send me your queries via PM. |
| | |
| | #3 |
| 22 Yards Project Manager/Developer Alias: Das Join Date: Sep 2009 Biography: Developer Location: Bangalore
Posts: 54
vCash: 500
![]() | good point...One more thing we can also copy some implementation from some site...but the idea is to learn (for our own benefit) and optimize the code as much as possible (in terms of speed).
__________________ Project Manager/Developer - 22Yards 22yards.blog.com |
| | |
| | #4 | |
| Administrator | Quote:
| |
| | |
| | #5 |
| 22 Yards Project Manager/Developer Alias: Das Join Date: Sep 2009 Biography: Developer Location: Bangalore
Posts: 54
vCash: 500
![]() | A function that takes may be following parameters 1)Team 1's present score 2)Team 1's No of wkts fallen 3) Team 1's no of overs gone 4)Team 2's present score 5)Team 2's No of wkts fallen 6) Team 2's no of overs gone and gives the required output..
__________________ Project Manager/Developer - 22Yards 22yards.blog.com |
| | |
| | #6 |
| Street Cricketer Join Date: Sep 2009
Posts: 9
vCash: 500
![]() | guys i got the duckworth lewis tables from icc http://static.icc-cricket.yahoo.net/...757686_695.pdf according to that we'll need to know these things n is the number of overs per innings for the match as decided at the moment of delivery of the frst ball of the match. s is Team 1’s total score. r1 is the resource percentage (relative to a full 50-over innings) available to Team 1. r2 is the resource percentage (relative to a full 50-over innings) available to Team 2. t is Team 2’s target score. also will need the tables to do the resource lookup to find r1 and r2 so first thing ive done is put the over by over table into a text file(dltable.txt that i attached), seperated by spaces then i read the file in one line at a time and store the values in List <List<double>> table = new List<List<double>>(); heres what ive got so far http://pastebin.com/f2b55a02b am i on the right track or is there a better way to get the table in a usable form to start calculating with it? Edit i just realised im reading in from the file backwards too, like when oversLeft is 0, there is actually 50 overs left, because im reading the table from top down Last edited by vinny187666; 13-10-2009 at 12:53 PM. |
| | |
| | #7 | |
| Administrator | Quote:
@Vinny: Though it is a very accurate way but I was trying to do this with an easy way. However, it won't be that accurate. I am currently working on a private development forum only for developers So that dev discussions can be kept private ![]() | |
| | |
| | #8 |
| 22 Yards Project Manager/Developer Alias: Das Join Date: Sep 2009 Biography: Developer Location: Bangalore
Posts: 54
vCash: 500
![]() | ^^ If its not exactly same as duckworth-lewis algo...would that "NOT" be accepted by general public? ---------- Post added at 09:09 PM ---------- Previous post was at 09:05 PM ---------- I dont think holding those tables in-memory is wise. My initial impression was that there was a long statistical calculation and we would be calculating...but if we are referring to a table. Then we need to do the following... 1) Create appropriate data-structure to hold the table 2) Serialize that and put in Internal Storage (XNA). Then when need we can do a small hash-table lookup thingy to retrieve what we want.
__________________ Project Manager/Developer - 22Yards 22yards.blog.com |
| | |
| | #9 |
| Street Cricketer Join Date: Sep 2009
Posts: 9
vCash: 500
![]() | do you mean youre setting up a private forum stumped? or using one already? and should i continue or have you got the duckworth sorted? ive got the table reading in ok, havent started on the algorithm yet |
| | |
| | #10 |
| 22 Yards Project Manager/Developer Alias: Das Join Date: Sep 2009 Biography: Developer Location: Bangalore
Posts: 54
vCash: 500
![]() | I think you can start off Vinny. On Saturday I will have a look. He is already working on storyline and screen designs
__________________ Project Manager/Developer - 22Yards 22yards.blog.com |
| | |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|