{"id":25709587,"url":"https://github.com/manigandand/stringmatchgame","last_synced_at":"2026-04-22T21:32:24.910Z","repository":{"id":168671933,"uuid":"64501205","full_name":"manigandand/stringmatchgame","owner":"manigandand","description":"Simple string match game in Golang. ","archived":false,"fork":false,"pushed_at":"2019-10-03T08:13:04.000Z","size":2049,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T09:43:16.201Z","etag":null,"topics":["golang","gomod"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manigandand.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,"publiccode":null,"codemeta":null}},"created_at":"2016-07-29T18:11:39.000Z","updated_at":"2019-11-08T03:48:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b418c96-1240-4513-94a0-54d321cd91b6","html_url":"https://github.com/manigandand/stringmatchgame","commit_stats":null,"previous_names":["manigandand/stringmatchgame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manigandand/stringmatchgame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manigandand%2Fstringmatchgame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manigandand%2Fstringmatchgame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manigandand%2Fstringmatchgame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manigandand%2Fstringmatchgame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manigandand","download_url":"https://codeload.github.com/manigandand/stringmatchgame/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manigandand%2Fstringmatchgame/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263499193,"owners_count":23476021,"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":["golang","gomod"],"created_at":"2025-02-25T09:37:13.309Z","updated_at":"2026-04-22T21:32:24.880Z","avatar_url":"https://github.com/manigandand.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StringMatchGame\nSimple string match game in Golang. \n\nLet’s write a game!\nThe game engine first selects a code (string) of a certain length at random (and does not disclose this to the\nplayer).\nThe player is allowed certain number of guesses to strategically guess the code.\nAfter each guess, the game engine informs the player of the following:\n1. Number of characters that are correct, but in the wrong place and\n2. Number of characters that are correct and in the correct place.\nExample : the game could start off with the computer generating the code : KMAFYM\nThe game engine starts by setting this code and informing the player that the code has 6 characters.\nIf the user guesses ABCDEF, then the engine informs the player that the he got 2 characters that are\npresent in the string but not in the right place. Then the user has to try again and so on ...\nBONUS​ ( Think about this only if you finish the above question early ) :\nAs a followup to this question, write a computer based player, that also guesses the string alongside the\nplayer and gets one chance after player's each guess.\nAlso show the player what the stats for the computer player are after every chance.\n\n\n#Test case and sample outputs\n#Unit test\n```\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego test\nPASS\nok      _/C_/Users/Manigandan_D/Desktop/StringMatchGame 0.101s\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003e\n```\n#Without Prints\n```\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nhyespd\nEnter text to guss: heydps\nheydps\n\nYou have gussed the correct letter but not in the correct position are:  4\nYou have gussed the correct letter in the correct position are:  2\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003e\n```\n\n#----------------------------------------------\n```\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nEnter text to guss: maniga\nYou have gussed the correct letter but not in the correct position are:  1\nYou have gussed the correct letter in the correct position are:  0\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nEnter text to guss: ajayss\nYou have gussed the correct letter but not in the correct position are:  0\nYou have gussed the correct letter in the correct position are:  0\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nEnter text to guss: karthi\nYou have gussed the correct letter but not in the correct position are:  0\nYou have gussed the correct letter in the correct position are:  1\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003e\n```\n\n#----------------------------------------------\n\n\n#With prints\n```\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nqmoopt\nEnter text to guss: aaaaaa\naaaaaa\n\nYou have gussed the correct letter in the correct position are:  0\nYou have gussed the correct letter but not in the correct position are:  0\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nbygasq\nEnter text to guss: zzgzza\nzzgzza\n\nPos:  3   a  --\u003e  Pos:  5   a\n97  This pressents\nYou have gussed the correct letter in the correct position are:  1\nYou have gussed the correct letter but not in the correct position are:  1\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\nsmlgbx\nEnter text to guss: smlgbx\nsmlgbx\n\nYou have gussed the correct letter in the correct position are:  6\nYou have gussed the correct letter but not in the correct position are:  0\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003ego run main.go\ntirswj\nEnter text to guss: itsrjw\nitsrjw\n\nPos:  0   t  --\u003e  Pos:  1   t\n116  This pressents\nPos:  1   i  --\u003e  Pos:  0   i\n105  This pressents\nPos:  2   r  --\u003e  Pos:  3   r\n114  This pressents\nPos:  3   s  --\u003e  Pos:  2   s\n115  This pressents\nPos:  4   w  --\u003e  Pos:  5   w\n119  This pressents\nPos:  5   j  --\u003e  Pos:  4   j\n106  This pressents\nYou have gussed the correct letter in the correct position are:  0\nYou have gussed the correct letter but not in the correct position are:  6\n\nC:\\Users\\Manigandan D\\Desktop\\StringMatchGame\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanigandand%2Fstringmatchgame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanigandand%2Fstringmatchgame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanigandand%2Fstringmatchgame/lists"}