{"id":17952624,"url":"https://github.com/lahirumaramba/swift-tictactoe","last_synced_at":"2025-04-03T16:27:03.610Z","repository":{"id":143322164,"uuid":"77093418","full_name":"lahirumaramba/Swift-TicTacToe","owner":"lahirumaramba","description":"Tic Tac Toe Game in Swift 3.0","archived":false,"fork":false,"pushed_at":"2017-01-04T21:58:31.000Z","size":610,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-09T05:15:22.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lahirumaramba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-21T23:22:49.000Z","updated_at":"2016-12-21T23:24:14.000Z","dependencies_parsed_at":"2023-05-14T15:00:12.499Z","dependency_job_id":null,"html_url":"https://github.com/lahirumaramba/Swift-TicTacToe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahirumaramba%2FSwift-TicTacToe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahirumaramba%2FSwift-TicTacToe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahirumaramba%2FSwift-TicTacToe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahirumaramba%2FSwift-TicTacToe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lahirumaramba","download_url":"https://codeload.github.com/lahirumaramba/Swift-TicTacToe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247035904,"owners_count":20872858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T09:58:51.734Z","updated_at":"2025-04-03T16:27:03.570Z","avatar_url":"https://github.com/lahirumaramba.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift-TicTacToe\nTic Tac Toe Game in Swift 3.0\n\n\u003cimg src=\"https://raw.githubusercontent.com/llahiru/Swift-TicTacToe/master/screens/screen01.png\" width=\"250\"\u003e \n\u003cimg src=\"https://raw.githubusercontent.com/llahiru/Swift-TicTacToe/master/screens/screen02.png\" width=\"250\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/llahiru/Swift-TicTacToe/master/screens/screen03.png\" width=\"250\"\u003e\n\n# Todo\n* Highlight the winning grid items (line)\n* Add Game Menu\n* Save scores from previous sessions\n* Add Human vs Computer gameplay\n* If more features are added to the gameplay in the future, if might be worth having separate .swift files for Model and Controller classes\n* Use Visual Format Language \u0026 NSLayoutConstraint instead of storyboard for main game view\n* Write Unit tests\n\n# Note\nIn this implementation, I used callbacks over delegation. I believe for a simple game application like this using callbacks in Swift (instead of delegates) reduce unnecessary code and provide decoupled, easy to test, and clear code.\nThis is a good read on the topic: https://medium.cobeisfresh.com/why-you-shouldn-t-use-delegates-in-swift-7ef808a7f16b#.6ydwl7qpz\n\nIcon from:\nhttps://www.iconfinder.com/icons/190320/game_red_tac_tic_toe_icon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahirumaramba%2Fswift-tictactoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahirumaramba%2Fswift-tictactoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahirumaramba%2Fswift-tictactoe/lists"}