{"id":15973696,"url":"https://github.com/hvy/add-game","last_synced_at":"2025-07-26T17:35:10.220Z","repository":{"id":77727493,"uuid":"48597359","full_name":"hvy/add-game","owner":"hvy","description":null,"archived":false,"fork":false,"pushed_at":"2016-01-18T16:08:54.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T01:46:07.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/hvy.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}},"created_at":"2015-12-26T02:44:00.000Z","updated_at":"2022-04-11T21:51:25.000Z","dependencies_parsed_at":"2023-03-01T14:46:25.277Z","dependency_job_id":null,"html_url":"https://github.com/hvy/add-game","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/hvy%2Fadd-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvy%2Fadd-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvy%2Fadd-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hvy%2Fadd-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hvy","download_url":"https://codeload.github.com/hvy/add-game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208404,"owners_count":20901570,"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-07T21:06:29.272Z","updated_at":"2025-04-04T16:21:04.879Z","avatar_url":"https://github.com/hvy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Add Game\n\n## About\nThis is an implementation of a game inspired by the Add-1 game explained in the Book [Thinking, Fast and Slow by Daniel Kahneman](https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow) in the section PART I. Two Systems - 2. Attention and Effort. Daniel Kahneman is a psychologist in the field decision making and received the Nobel Memorial Prize in Economic Sciences in 2002. The book itself was written in 2011.\n\n### Rules\nThe game is round based an the goal is to survive as many rounds as possible. In the beginning of each round, four digits are displayed on the screen x\u003csub\u003ei\u003c/sub\u003e, i = 1, 2, 3, 4. The player needs to quickly, within a few seconds enter a new sequence of digits x'\u003csub\u003ei\u003c/sub\u003e where x'\u003csub\u003ei\u003c/sub\u003e = x\u003csub\u003ei\u003c/sub\u003e + X mod 10 where X = 1 in the Add-1 game but could be changed to any positive number.\n\n## Installation\n### Prerequisites\n* [Java SE 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n* [Apache Maven](https://maven.apache.org) *Tested with Maven 3.3.9*\n\n### Installation\nRun the following commands to clone the repository and install the game in the current working directory.\n\n```\ngit clone https://github.com/hvy/add-game.git\ncd add-game\nmvn install\n```\n\n### Run\nAssuming that the installation was successful, run the following commands to start the game.\n\n```\ncd target\njava -jar add-game-1.0-SNAPSHOT.jar\n```\n\n#### Run Tests\nTests created with Nonbinary Variable Domain Analysis can be run using the following command.\n\n```\nmvn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvy%2Fadd-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhvy%2Fadd-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhvy%2Fadd-game/lists"}