{"id":23643434,"url":"https://github.com/rohatdgnr/minesweeper","last_synced_at":"2025-08-31T19:31:14.369Z","repository":{"id":228245558,"uuid":"768882953","full_name":"rohatdgnr/MineSweeper","owner":"rohatdgnr","description":"The game table (matrix) created with values ​​taken from the user is a text-based game based on the scenario of the player progressing without selecting the mines (*) and winning or losing.","archived":false,"fork":false,"pushed_at":"2024-06-10T01:17:56.000Z","size":738,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-10T02:31:17.073Z","etag":null,"topics":["java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohatdgnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-03-07T22:57:30.000Z","updated_at":"2024-06-10T01:18:13.000Z","dependencies_parsed_at":"2024-03-17T20:52:50.928Z","dependency_job_id":null,"html_url":"https://github.com/rohatdgnr/MineSweeper","commit_stats":null,"previous_names":["rohatdgnr/minesweeper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohatdgnr%2FMineSweeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohatdgnr%2FMineSweeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohatdgnr%2FMineSweeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohatdgnr%2FMineSweeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohatdgnr","download_url":"https://codeload.github.com/rohatdgnr/MineSweeper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231616473,"owners_count":18401091,"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":["java"],"created_at":"2024-12-28T11:18:32.411Z","updated_at":"2024-12-28T11:18:33.125Z","avatar_url":"https://github.com/rohatdgnr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src =\"boom.png\"/\u003e\n\n\n# MineSweeper\n\n\n\n# Nasıl Oynanır\n\n- Oyunun başlangıcında, oyun tahtası \"-\" karakterleriyle gösterilir ve mayınlar rastgele yerleştirilir.\n- Oyuncu, satır ve sütun koordinatlarını girdiği sürece oyuna devam eder.\n- Girilen koordinatlara göre, oyun tahtası güncellenir ve eğer o alanda bir mayın yoksa, etrafındaki mayın sayısı yazdırılır.\n- Eğer oyuncu bir mayına rastlarsa, oyun sonlanır ve kaybeder.\n- Tüm mayın olmayan alanlar açıldığında, oyuncu kazanır.\n\n# Metod Açıklamaları\n\n- MineSweeper(int rows, int cols): Oyun tahtasını belirli bir satır ve sütun sayısıyla oluşturur. Mayınları yerleştirir.\n\n- firstBoard(): Oyun tahtasını \"-\" karakterleriyle doldurur.\n\n-placeMines(): Mayınları oyun tahtasına rastgele yerleştirir.\n\n- playBoard(): Oyun tahtasını ekrana yazdırır.\n\n- printMineLocations(): Mayınların rastgele yerleştirilmiş hâlini ekrana yazdırır.\n\n- play(): Oyunu başlatır ve oyun durumunu kontrol eder.\n\n- MineControl(int row, int col): Seçilen kareyi açar ve etrafındaki mayın sayısını kontrol eder.\n\n- nearbyMines(int row, int col): Girilen koordinatın çevresini kontrol eder ve temas edilen mayın sayısını hesaplar.\n\n# Kullanım Örneği\n\n-  Aşağıdaki kod bloğu, kullanıcıdan satır ve sütun sayısını alarak Mayın Tarlası oyununu başlatır.\n\n![img.png](img.png)\n\n# Bu kod bloğu, kullanıcının oyun için satır ve sütun sayısını belirlemesine olanak tanır ve ardından bu boyutlarda bir Mayın Tarlası oyunu başlatır.\n\n![img_1.png](img_1.png)\n\n# Kullanıcının kazanma senaryasu. \n\n![img_2.png](img_2.png)\n# Bu ise kullanıcının kaybetme senaryosu.\n\n\n\n\n\n# Lisans\n\nBu proje MIT lisansı altında lisanslanmıştır. Detaylar için LİSANS dosyasına bakabilirsiniz.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohatdgnr%2Fminesweeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohatdgnr%2Fminesweeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohatdgnr%2Fminesweeper/lists"}