{"id":28217189,"url":"https://github.com/ovsidee/checkers","last_synced_at":"2026-04-13T21:31:08.813Z","repository":{"id":281377385,"uuid":"881064239","full_name":"ovsidee/Checkers","owner":"ovsidee","description":"Java Panama Project. JNI. The Tic-Tac-Toe 5x5 game is done on the java and c++. Full logic was done using the c++, all the graphical part was done on the java side.","archived":false,"fork":false,"pushed_at":"2025-04-13T01:00:38.000Z","size":219,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T22:34:03.944Z","etag":null,"topics":["cpp","java","javafx","jni","jni-java","junit5","mvc-pattern"],"latest_commit_sha":null,"homepage":"","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/ovsidee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-30T21:16:24.000Z","updated_at":"2025-04-13T01:00:41.000Z","dependencies_parsed_at":"2025-07-18T19:32:53.055Z","dependency_job_id":"ec675910-3b82-42a7-8d21-4340317b354d","html_url":"https://github.com/ovsidee/Checkers","commit_stats":null,"previous_names":["ovsidee/tictactoe5x5","ovsidee/checkers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ovsidee/Checkers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovsidee%2FCheckers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovsidee%2FCheckers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovsidee%2FCheckers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovsidee%2FCheckers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovsidee","download_url":"https://codeload.github.com/ovsidee/Checkers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovsidee%2FCheckers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cpp","java","javafx","jni","jni-java","junit5","mvc-pattern"],"created_at":"2025-05-18T00:11:32.795Z","updated_at":"2026-04-13T21:31:08.791Z","avatar_url":"https://github.com/ovsidee.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Checkers / Tic-Tac-Toe 5x5\n\nA **Checkers / Tic-Tac-Toe 5x5** game implemented as a **Java Panama Project** with **JNI (Java Native Interface)**.\n\nThe game logic is implemented in **C++**, while the graphical interface is built using **Java Swing**. The design follows the **MVC pattern** to separate concerns between the model, view, and controller.\n\n## Technologies Used\n- **Java Swing**\n- **C++**\n- **JNI**\n- **JUnit5**\n\n## Game Flow\n\n1. **Game Setup**: \n   - The game starts by initializing a 5x5 grid for the Tic-Tac-Toe board.\n   - Players take turns to mark a cell in the grid with either \"X\" or \"O\".\n\n2. **Gameplay**:\n   - The player or AI selects a cell to place their mark.\n   - After each move, the game checks for a win condition (horizontal, vertical, diagonal).\n\n3. **Win Condition**:\n   - A player wins if they form a line of 5 marks horizontally, vertically, or diagonally.\n\n4. **Graphics**:\n   - The GUI updates dynamically after each move to reflect the state of the game.\n   - Players are notified of wins or ties directly in the GUI.\n\n## Running the Application\n\nTo run the **Checkers / Tic-Tac-Toe 5x5** game locally:\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/your-username/CheckersTicTacToe5x5.git \u0026\u0026 cd CheckersTicTacToe5x5\n2. **Compile the C++ code**:\n  - Make sure to compile the C++ game logic before running the application. If you are using a typical setup, use the following command:\n    ```bash\n    g++ -shared -o libgameLogic.so game_logic.cpp\n3. **Run the Java application**:\n- Build and run the project using Maven:\n   ```bash\n    mvn clean install\n    mvn exec:java\n   ```\n4. **Play the game**:\n  - Launch the game through the GUI, and start playing!\n\n## Access the Game\n  - The game interface is entirely graphical, offering click-able squares and updates for players to interact with the 5x5 board.\n\n## Unit Testing\n  Unit tests have been written to validate the core game logic, ensuring the correctness of game rules, win conditions, and turn-taking mechanisms. The tests are written using JUnit 5.\n  - To run the tests:\n  ```bash\n  mvn test\n  ```\n\n## JNI Integration\n  The Java code communicates with the C++ logic through JNI. This allows Java to leverage the performance of C++ while maintaining a user-friendly interface in Java.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovsidee%2Fcheckers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovsidee%2Fcheckers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovsidee%2Fcheckers/lists"}