{"id":26280759,"url":"https://github.com/nicolocurioni96/gameofblockssample","last_synced_at":"2026-04-29T10:32:27.955Z","repository":{"id":108756120,"uuid":"569714517","full_name":"nicolocurioni96/GameOfBlocksSample","owner":"nicolocurioni96","description":"Sample SwiftUI game with Blocks ","archived":false,"fork":false,"pushed_at":"2023-12-11T08:50:22.000Z","size":1098,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T01:13:18.496Z","etag":null,"topics":["coding-interviews","game","game-test","gucci-test","mvp","swift","swiftui","unit-test"],"latest_commit_sha":null,"homepage":"","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/nicolocurioni96.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}},"created_at":"2022-11-23T13:00:27.000Z","updated_at":"2024-03-25T08:49:01.000Z","dependencies_parsed_at":"2023-06-04T17:00:18.611Z","dependency_job_id":null,"html_url":"https://github.com/nicolocurioni96/GameOfBlocksSample","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/nicolocurioni96%2FGameOfBlocksSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolocurioni96%2FGameOfBlocksSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolocurioni96%2FGameOfBlocksSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolocurioni96%2FGameOfBlocksSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolocurioni96","download_url":"https://codeload.github.com/nicolocurioni96/GameOfBlocksSample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597837,"owners_count":20316845,"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":["coding-interviews","game","game-test","gucci-test","mvp","swift","swiftui","unit-test"],"created_at":"2025-03-14T15:17:36.505Z","updated_at":"2026-04-29T10:32:27.928Z","avatar_url":"https://github.com/nicolocurioni96.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An Amazing Game of Blocks\n\nWe are starting the development of a new game. This is the first iteration, but there will be many others, so don’t consider this to be throw-away code.\n\nThe first iteration is targeting an MVP that will work as follows:\n\n- The player is presented with 25 empty squares. Every time that they touch a square, it becomes a coloured block.\n\n- If the square touched was on the bottom row, the block appears and stays where it is.\n\n## Project statuses\n\n| Task        | Status |\n| ----------- | ------ |\n| Narrative 1 | 🟢     |\n| Narrative 2 | 🟢     |\n| Narrative 3 | 🟢     |\n\n## First Case\n\n![This is an image](assets/first_case.png)\n\n## BDD Specs\n\n### Story: Create a simple game\n\n### Narrative #1\n\n```\nAs player, if the player touches a square on one of the upper rows, the new block appears and then falls down until it meets another block or gets to the bottom row.\n```\n\n![This is an image](assets/target_action_case.png)\n\n### Narrative #2\n\n```\nIf a block is falling in-between two blocks, the block will stop its fall, forming a bridge.\n```\n\n![This is an image](assets/block_falling_use_case.png)\n\n### Narrative #3\n\n```\nAfter 10 blocks have been placed, the game ends and the score is calculated : each block is worth 5 points, plus 5 points for each block below it. 10 points for each empty square below a block.\n```\n\n![This is an image](assets/last_case.png)\n\n## Model Specs\n\n### Game Model\n\n| Property                    | Type                                             |\n| --------------------------- | ------------------------------------------------ |\n| `emptyNeighborScore`        | `Int`                                            |\n| `filledNeighborScore`       | `Int`                                            |\n| `initialBlockScore`         | `Int`                                            |\n| `numberOfColumns`           | `Int`                                            |\n| `numberOfRows`              | `Int`                                            |\n| `selectedBlocks`            | `Array(arrayLiteral: Dictionary\u003cString, Int\u003e())` |\n| `scoreArray`                | `Array(arrayLiteral: Dictionary\u003cString, Int\u003e())` |\n| `finalScore`                | `String`                                         |\n| `isUserInteractionDisabled` | `Bool`                                           |\n| `resultLength`              | `Int`                                            |\n| `columns`                   | `Array\u003cGridItem\u003e`                                |\n\n## Legend\n\n- DONE: 🟢\n- WIP: 🟠\n- TODO: ⚪️\n- \n\n## Get in Touch\n\n[![X](https://img.shields.io/badge/X-Nicolò_Curioni-darkgrey.svg)](https://bit.ly/3KHu7Kk)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-Nicolò_Curioni-blue.svg)](https://bit.ly/42AsPXY) \n[![YouTube](https://img.shields.io/badge/YouTube-Nicolò_Curioni-red.svg)](https://bit.ly/3P0ASa8) \n[![TikTok](https://img.shields.io/badge/TikTok-Nicolò_Curioni-darkgrey.svg)](https://bit.ly/45LlPZY)\n[![Instagram](https://img.shields.io/badge/Instagram-Nicolò_Curioni-purple.svg)](https://bit.ly/3Uk9ln8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolocurioni96%2Fgameofblockssample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolocurioni96%2Fgameofblockssample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolocurioni96%2Fgameofblockssample/lists"}