russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Oct 28, 2011 20:36:40 GMT
I'm trying to make a basic algorithm to simulate a cricket match so far I have this clickeh please let me know what changes you would make to improve the realism. This is the first algorithm i've made so if you have any tips they might be useful. thanks.
|
|
|
Post by echnaret on Oct 29, 2011 2:12:36 GMT
I don't know anything about cricket, so I doubt I'd be much help to you.
|
|
prads
Elite Poster
[M:0]
It's a shame that PI isn't an integer :(
Posts: 361
|
Post by prads on Oct 29, 2011 5:23:46 GMT
It would be more helpful if you put some batsman with low batsman skill in the list (same for bowler). Right now it looks really random.
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Oct 29, 2011 16:56:40 GMT
Improved this quite a bit today. You can now add players to test them out also added this to git if you wanted to take a look and suggest more. Git held here: github.com/russellbarnard/rCricketSIM
|
|
prads
Elite Poster
[M:0]
It's a shame that PI isn't an integer :(
Posts: 361
|
Post by prads on Oct 30, 2011 13:59:27 GMT
Algorithm looks much better now. Some variables like weather conditions, pitch conditions etc which might give batsman or bowler the edge, will make it look really nice...
I tried to add some players, I can see them on the list but the name, skill levels etc doesn't show up when I select them...
Edit: Never mind, just tested it and it works now. I wonder why it wasn't working before..?
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Oct 30, 2011 16:12:29 GMT
I think the xml file takes a little while to recognise its changed could be down to the cache i think.
Yes looks more variables to add risk, weather, batsmen settled etc...
then eventually make it into teams, matches leagues hopefully...
*edit~ just updated so that extras are recognised and can be added to the total...
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Oct 31, 2011 19:17:29 GMT
Now updated to work on the difference between skill levels not the number itself so a bad bowler could get out a really bad batsman... etc...
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 2, 2011 21:07:28 GMT
More updated taken place not much of a change viewing wise aside a little delay to make it seem a tad more real.
Its now a bit more functional only used bat and bowl id in the url (get) which makes it a little more human friendly the algorithm has changed slightly as well uploading to git in a minute.
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 4, 2011 18:43:41 GMT
Basic Innings functionality now in play how many runs can you get before losing 10 wickets. (can take some time!)
|
|