{"id":27197812,"url":"https://github.com/samuelemusiani/project_37635","last_synced_at":"2025-09-05T10:44:03.342Z","repository":{"id":194308702,"uuid":"657696531","full_name":"samuelemusiani/project_37635","owner":"samuelemusiani","description":"A program made to play a generalized version of connect 4 perfectly","archived":false,"fork":false,"pushed_at":"2023-09-03T22:03:02.000Z","size":339,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T12:13:26.895Z","etag":null,"topics":["connect4","connect4-ai-game","connect4-game","heuristics","java","pvs"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuelemusiani.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}},"created_at":"2023-06-23T16:18:46.000Z","updated_at":"2023-09-12T16:27:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"b847e5c1-38dc-403b-8a5f-99c6778750c3","html_url":"https://github.com/samuelemusiani/project_37635","commit_stats":null,"previous_names":["musianisamuele/project_37635","samuelemusiani/project_37635"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samuelemusiani/project_37635","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelemusiani%2Fproject_37635","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelemusiani%2Fproject_37635/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelemusiani%2Fproject_37635/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelemusiani%2Fproject_37635/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelemusiani","download_url":"https://codeload.github.com/samuelemusiani/project_37635/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelemusiani%2Fproject_37635/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273747795,"owners_count":25160650,"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-09-05T02:00:09.113Z","response_time":402,"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":["connect4","connect4-ai-game","connect4-game","heuristics","java","pvs"],"created_at":"2025-04-09T20:29:38.835Z","updated_at":"2025-09-05T10:43:58.317Z","avatar_url":"https://github.com/samuelemusiani.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect X\n\nA program made to play a generalized version of connect 4 perfectly \n\n# Commands\n\n## Compile \n\nIf you are on Linux or macOS you can simply run the following command in the \nproject directory:\n```sh\n$ ./gradlew build\n```\nIf you are so unlucky to work on Windows, the following command should work:\n```\n$ gradlew build\n```\n\n## CXPlayerTester application:\n\nAfter the project built successfully, you can test computer vs computer with \nthe following command:\n```sh\n$ java -jar build/libs/connectx.jar 6 7 4 connectx.Players.L0 connectx.Players.L1  \n```\nIf you are on Windows remember to change the `/` to the `\\` for the path.\n\nThere are additional flags to use in order to specify different configurations:\n\n- With `-v` the output will be verbose\n- With `-t` you can specify a maximum time of each move\n- With `-r` you can specify how many rounds need to be played.\n\nVerbose output and customized timeout (10 sec) and number of game repetitions \n(2 rounds) should look like this:\n```sh\n$ java -jar build/libs/connectx.jar 6 7 4 connectx.Players.L0 connectx.Players.L1 -v -t 10 -r 2\n``` \n\n## CXGame application:\n\nIn `gradle.build` the main class is specified, if you want another class to run\nas main (for example the CXGame) you can simply uncomment the commented line.\n\n## full_test script\nThere is a bash script with the name `full_test.sh` that allow to use the \n`CXPlayerTester` with all the board configurations stored in `board_configurations.txt`.\nThe use is pretty simple: you just need to pass two player names in the command line\nand the script will do the rest.\n```sh\n./full_test.sh L0 L1\n```\nIf you want the verbose output just use the `-v` flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelemusiani%2Fproject_37635","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelemusiani%2Fproject_37635","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelemusiani%2Fproject_37635/lists"}