You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.8 KiB

{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"isGameOver"},{"kind":"text","text":"() -> ("},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"typeIdentifier","identifier":"doc:\/\/Model\/documentation\/Model\/GameResult","preciseIdentifier":"s:5Model10GameResultO","text":"GameResult"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Returns"}]}]}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/model\/rules\/isgameover()"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Model\/documentation\/Model\/Rules\/isGameOver()","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Defines if game is over"}],"kind":"symbol","metadata":{"role":"symbol","title":"isGameOver()","roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"isGameOver"},{"kind":"text","text":"() -> ("},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"GameResult","preciseIdentifier":"s:5Model10GameResultO"},{"kind":"text","text":")"}],"symbolKind":"method","externalID":"s:5Model5RulesP10isGameOverSb_SiAA0D6ResultOtyF","required":true,"modules":[{"name":"Model"}]},"hierarchy":{"paths":[["doc:\/\/Model\/documentation\/Model","doc:\/\/Model\/documentation\/Model\/Rules"]]},"references":{"doc://Model/documentation/Model":{"role":"collection","title":"Model","abstract":[],"identifier":"doc:\/\/Model\/documentation\/Model","kind":"symbol","type":"topic","url":"\/documentation\/model"},"doc://Model/documentation/Model/GameResult":{"role":"symbol","title":"GameResult","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"GameResult"}],"abstract":[{"type":"text","text":"Represents result of a game"}],"identifier":"doc:\/\/Model\/documentation\/Model\/GameResult","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"GameResult"}],"url":"\/documentation\/model\/gameresult"},"doc://Model/documentation/Model/Rules/isGameOver()":{"role":"symbol","title":"isGameOver()","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"isGameOver"},{"kind":"text","text":"() -> ("},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"typeIdentifier","text":"GameResult","preciseIdentifier":"s:5Model10GameResultO"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Defines if game is over"}],"identifier":"doc:\/\/Model\/documentation\/Model\/Rules\/isGameOver()","kind":"symbol","required":true,"type":"topic","url":"\/documentation\/model\/rules\/isgameover()"},"doc://Model/documentation/Model/Rules":{"role":"symbol","title":"Rules","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Rules"}],"abstract":[{"type":"text","text":"Rules of Connect 4 game"}],"identifier":"doc:\/\/Model\/documentation\/Model\/Rules","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Rules"}],"url":"\/documentation\/model\/rules"}}}