Crickets are kept as pets and are considered good luck in some countries; in China, they are sometimes kept in cages or in hollowed-out gourds specially created in novel shapes.[49] The practice was common in Japan for thousands of years; it peaked in the 19th century, though crickets are still sold at pet shops.[50] It is also common to have them as caged pets in some European countries, particularly in the Iberian Peninsula. Cricket fighting is a traditional Chinese pastime that dates back to the Tang dynasty (618–907). Originally an indulgence of emperors, cricket fighting later became popular among commoners.[51] The dominance and fighting ability of males does not depend on strength alone; it has been found that they become more aggressive after certain pre-fight experiences such as isolation, or when defending a refuge. Crickets forced to fly for a short while will afterwards fight for two to three times longer than they otherwise would.[52]
Before a match begins, the team captains (who are also players) toss a coin to decide which team will bat first and so take the first innings.[63] Innings is the term used for each phase of play in the match.[63] In each innings, one team bats, attempting to score runs, while the other team bowls and fields the ball, attempting to restrict the scoring and dismiss the batsmen.[64][65] When the first innings ends, the teams change roles; there can be two to four innings depending upon the type of match. A match with four scheduled innings is played over three to five days; a match with two scheduled innings is usually completed in a single day.[63] During an innings, all eleven members of the fielding team take the field, but usually only two members of the batting team are on the field at any given time. The exception to this is if a batsman has any type of illness or injury restricting his or her ability to run, in this case the batsman is allowed "A Runner" who can run between the wickets when the batsman hits a scoring run or runs.[63] The order of batsmen is usually announced just before the match, but it can be varied.[58]
In a two-innings-a-side match, one team's combined first and second innings total may be less than the other side's first innings total. The team with the greater score is then said to have "won by an innings and n runs", and does not need to bat again: n is the difference between the two teams' aggregate scores. If the team batting last is all out, and both sides have scored the same number of runs, then the match is a tie; this result is quite rare in matches of two innings a side with only 62 happening in first-class matches from the earliest known instance in 1741 until January 2017. In the traditional form of the game, if the time allotted for the match expires before either side can win, then the game is declared a draw.[66]
Crickets have from time to time appeared in poetry. William Wordsworth's 1805 poem The Cottager to Her Infant includes the couplet "The kitten sleeps upon the hearth, The crickets long have ceased their mirth".[46] John Keats's 1819 poem Ode to Autumn includes the lines "Hedge-crickets sing; and now with treble soft / The redbreast whistles from a garden-croft".[47] The Chinese Tang dynasty poet Du Fu (712–770) wrote a poem that in the translation by J. P. Seaton begins "House cricket ... Trifling thing. And yet how his mournful song moves us. Out in the grass his cry was a tremble, But now, he trills beneath our bed, to share his sorrow."[48]