{"id":15102484,"url":"https://github.com/hey-its-d2t2/futureintern_jd_3","last_synced_at":"2026-02-12T15:31:32.401Z","repository":{"id":255815431,"uuid":"853168247","full_name":"hey-its-d2t2/Futureintern_JD_3","owner":"hey-its-d2t2","description":"Tic-Tac-Toe is a classic game implemented using Java Spring Boot for the backend and Thymeleaf, HTML, and CSS for the frontend. The application allows users to play Tic-Tac-Toe against either another player or a computer.","archived":false,"fork":false,"pushed_at":"2024-09-13T10:58:34.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T22:44:18.853Z","etag":null,"topics":["aws","css","ec2-instance","git","github","html","java","js","maven","mobaxterm","springboot","tic-tac-toe"],"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/hey-its-d2t2.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}},"created_at":"2024-09-06T05:55:56.000Z","updated_at":"2024-09-13T10:58:37.000Z","dependencies_parsed_at":"2024-12-18T17:54:20.542Z","dependency_job_id":null,"html_url":"https://github.com/hey-its-d2t2/Futureintern_JD_3","commit_stats":null,"previous_names":["hey-its-d2t2/futureintern_jd_3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FFutureintern_JD_3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FFutureintern_JD_3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FFutureintern_JD_3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hey-its-d2t2%2FFutureintern_JD_3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hey-its-d2t2","download_url":"https://codeload.github.com/hey-its-d2t2/Futureintern_JD_3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332525,"owners_count":20921852,"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":["aws","css","ec2-instance","git","github","html","java","js","maven","mobaxterm","springboot","tic-tac-toe"],"created_at":"2024-09-25T19:01:44.954Z","updated_at":"2026-02-12T15:31:32.372Z","avatar_url":"https://github.com/hey-its-d2t2.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic-Tac-Toe Game 🎮\n\n## Project Description\n\nTic-Tac-Toe is a classic game implemented using Java Spring Boot for the backend and Thymeleaf, HTML, and CSS for the frontend. This is a part of my internship **Task 5** for my **Future Intern** internship. The application allows users to play Tic-Tac-Toe against either another player or a computer. It includes functionalities such as making moves, checking for a winner, and restarting the game. \n\n## Features ✨\n\n- **Single Player Mode**: Play against the computer 🤖\n- **Two Player Mode**: Play against another player 🧑‍🤝‍🧑\n- **Restart Functionality**: Restart the game anytime 🔄\n- **Responsive Design**: The UI adapts to different screen sizes 📱💻\n- **Real-Time Updates**: Moves and game status are updated in real-time ⚡\n\n## Tech Stack 🛠️\n\n- **Backend**: Java, Spring Boot\n- **Frontend**: Thymeleaf, HTML, CSS, JavaScript\n- **Database**: In-memory storage (no database used)\n- **Dependencies**: Spring Boot, Thymeleaf, jQuery\n\n## Installation 🚀\n\n1. **Clone the repository**:\n\n    ```bash\n    git clone https://github.com/your-username/tic-tac-toe.git\n    ```\n\n2. **Navigate to the project directory**:\n\n    ```bash\n    cd tic-tac-toe\n    ```\n\n3. **Build the project**:\n\n    ```bash\n    ./mvnw clean install\n    ```\n\n4. **Run the application**:\n\n    ```bash\n    ./mvnw spring-boot:run\n    ```\n\n5. **Open your browser** and navigate to `http://localhost:8080/tic-tac-toe` to play the game.\n\n## UI Screenshots 📸\n\n### Game Board\n![tik1](https://github.com/user-attachments/assets/1ec83e73-26b1-43d5-b62a-ea029109b95a)\n\n### Game Over Screen\n![tik2](https://github.com/user-attachments/assets/08b459bb-ff22-4c77-8e2d-fc3568cd362a)\n\n## Usage 🕹️\n\n1. **Start the Application**: Run the Spring Boot application using the command provided in the installation section.\n2. **Access the Game**: Open a web browser and go to `http://localhost:8080/tic-tac-toe`.\n3. **Play the Game**:\n   - Click on a cell to make a move.\n   - If playing against the computer, it will make a move automatically.\n   - Click \"Restart Game\" to reset the board.\n\n## API Endpoints 📡\n\n- **Make a Move**:\n  - **URL**: `/tic-tac-toe/makeMove/{index}`\n  - **Method**: `POST`\n  - **Parameters**:\n    - `index` (Path Variable): The index of the cell (0-8).\n    - `mode` (Request Parameter): 'single' for single player mode.\n\n- **Restart Game**:\n  - **URL**: `/tic-tac-toe/restart`\n  - **Method**: `POST`\n\n## Frontend 🎨\n\n- **HTML**: Located in `src/main/resources/templates/index.html`\n- **CSS**: Located in `src/main/resources/static/css/styles.css`\n- **JavaScript**: Inline script in `index.html` for handling AJAX requests.\n\n## Contributing 🤝\n\nContributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.\n\n\n## Contact 📬\nFor any questions or feedback, please contact me at\n- **Name**: Deepak Singh\n- **Email**: [deepsinghkumar01@gmail.com](mailto:deepsinghkumar01@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhey-its-d2t2%2Ffutureintern_jd_3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhey-its-d2t2%2Ffutureintern_jd_3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhey-its-d2t2%2Ffutureintern_jd_3/lists"}