Play Cricket already stores a few basic rules as part of the fixture record i.e. the number of innings to be played by each team, and the number of overs. However, there are around 30 further pieces of information which are useful to scoring apps which we need to store in Play Cricket.
A number of templates containing the default values for these rules have already been created. Leagues and clubs can then either attach these templates to their divisions / cups / fixtures or use them to create site specific templates containing the rules relevant to their particular games. For example, the default number of overs per team might be 50, but a league might operate on the basis of a maximum of 45.
There is an entry in the Set Up section – Scoring Rules.
Select this to see the existing Scoring Rules templates.
The standard templates that are ‘owned’ by ECB cannot be changed but administrators may take a copy and make their own changes.
To view the templates, click the View icon. Scroll through to ensure that the rules suit your requirements.
If you wish to amend the rules, then click the Create Copy button.
Enter a name for the new template and click the Save button.
Make adjustments to the template for your fixture, save the template and repeat this exercise if necessary.
Rules applied to a fixture
If your team plays for a league that is administered by Play-Cricket, then you only need to be concerned with un-administered league games and friendlies.
When creating a fixture, you will need to add a scoring rule from the dropdown list at the top of the Fixture page. The rules created within your site will appear at the top, followed by the ECB templates.
Only the club that created the fixture can amend the rule for a friendly or unadministered competition fixture; if they have got the rule wrong then you need to consult with them about that
When setting up repeat fixtures, friendly or un-administered league, scoring rules will need to be applied. In the following example, I have selected the matches for an un-administered league that I wish to repeat for the next season.
Use the Edit button to add/change the scoring rule.
Save the change and then repeat for other fixtures.
To edit a template that you have created, click the View/Edit button for that Scoring Rule.
When the changes have been made and you save, the fixtures attached to that scoring rule will be updated.
Templates may only be removed if there are no match records connected to them.
Bulk Update of Fixtures
At the top of the fixtures page, there is an Update Scoring Rule button. This will help administrators to update the scoring rules for fixtures in bulk, either because the fixtures were created before this function was released or because a different scoring rule should be applied.
To update the scoring rules, tick the ‘Select All’ box and then the ‘Update Scoring Rule’ button.
Select the scoring rule to be used and then click the Update button.