{"id":18588375,"url":"https://github.com/an0n1mity/hearthstone-battleground-clone","last_synced_at":"2025-10-05T17:18:45.126Z","repository":{"id":111523103,"uuid":"575008557","full_name":"An0n1mity/Hearthstone-Battleground-Clone","owner":"An0n1mity","description":"A Simple HearthStone Battleground clone to demonstrate OOP concepts ","archived":false,"fork":false,"pushed_at":"2023-01-09T06:57:41.000Z","size":12005,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:40:43.134Z","etag":null,"topics":["card-game","hearthstone","oops-in-cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","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/An0n1mity.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":"2022-12-06T14:54:07.000Z","updated_at":"2025-03-31T09:45:40.000Z","dependencies_parsed_at":"2023-06-25T22:15:32.241Z","dependency_job_id":null,"html_url":"https://github.com/An0n1mity/Hearthstone-Battleground-Clone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/An0n1mity/Hearthstone-Battleground-Clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An0n1mity%2FHearthstone-Battleground-Clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An0n1mity%2FHearthstone-Battleground-Clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An0n1mity%2FHearthstone-Battleground-Clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An0n1mity%2FHearthstone-Battleground-Clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/An0n1mity","download_url":"https://codeload.github.com/An0n1mity/Hearthstone-Battleground-Clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/An0n1mity%2FHearthstone-Battleground-Clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486308,"owners_count":25994945,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["card-game","hearthstone","oops-in-cpp"],"created_at":"2024-11-07T00:45:44.713Z","updated_at":"2025-10-05T17:18:45.074Z","avatar_url":"https://github.com/An0n1mity.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/c++-%2300599C.svg?style=for-the-badge\u0026logo=c%2B%2B\u0026logoColor=white\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/An0n1mity/Hearthstone-Battleground-Clone\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://pbs.twimg.com/media/DjIndZsX4AAzV_S?format=jpg\u0026name=900x900\" width=10% height=auto/\u003e\n\u003c/p\u003e\n\n# Hearthstone-Battleground-Clone-CLI\nA Simple HearthStone Battleground clone to demonstrate OOP concepts \n\n## Class diagram 📊\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/An0n1mity/Hearthstone-Battleground-Clone/blob/main/image.png\" width=100% height=auto/\u003e\n\u003c/p\u003e\n\n## Design pattern\nThe goal of this project was to try learn basic of design pattern for OOP using C++.    \n1. Uses of smart pointers : Better aggregation and composition relationship than with raw pointers.  \n2. Abstract classes : Polymorphism, Interfaces, Generics.  \n3. Factory pattern : Create cards in a flexible and modular way.  \n\n## Gameplay 🎮\nTurn based game consisting of two phases : *recruitement* and *battle*.  \nThe game end when one of the player has lost all of his HP.  \n* **RECRUITEMENT** :\n  Player can choose betwen 4 actions : buy, sell, play a card, start battle.\n* **BATTLE** :\n  First player with most cards start the attack, minions attacking goes from left to right order and target a random enemy.\n## Card effects 🪄\n* **BATTLECRY** : Activate when card is played.\n* **TAUNT** : Force the card to be attacked by the opponent. Activate on damage.\n\n### Building the project 🔨\n#### Clone the repo\n```\ngit clone https://github.com/An0n1mity/Hearthstone-Battleground-Clone\n```\n#### Build from sources\n```\ng++ -o hearthstone-battle-ground-cli *.c++ (Linux)\nx86_64-w64-mingw32-g++-posix -o hearthstone-battle-ground-cli -std=c++2a -lwinpthread *.cpp (Windows)\n```\n#### Run the binary\n```\n./hearthstone-battle-ground-cli\n```\n( An executable was already compiled for windows with mingw, you need to launch it from a terminal )\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan0n1mity%2Fhearthstone-battleground-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fan0n1mity%2Fhearthstone-battleground-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fan0n1mity%2Fhearthstone-battleground-clone/lists"}