{"id":17099000,"url":"https://github.com/dinhanhx/tic-tac-toe-nn","last_synced_at":"2026-04-05T23:35:55.924Z","repository":{"id":112393967,"uuid":"307965771","full_name":"dinhanhx/tic-tac-toe-nn","owner":"dinhanhx","description":"My first project about neural network.","archived":false,"fork":false,"pushed_at":"2020-10-28T09:27:03.000Z","size":1787,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T23:50:01.646Z","etag":null,"topics":["beginner-friendly","keras","neural-network","python3","tensorflow","tic-tac-toe"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dinhanhx.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":"2020-10-28T09:26:08.000Z","updated_at":"2020-10-28T09:28:09.000Z","dependencies_parsed_at":"2023-05-14T09:00:32.964Z","dependency_job_id":null,"html_url":"https://github.com/dinhanhx/tic-tac-toe-nn","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/dinhanhx%2Ftic-tac-toe-nn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinhanhx%2Ftic-tac-toe-nn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinhanhx%2Ftic-tac-toe-nn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinhanhx%2Ftic-tac-toe-nn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinhanhx","download_url":"https://codeload.github.com/dinhanhx/tic-tac-toe-nn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144972,"owners_count":20568056,"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":["beginner-friendly","keras","neural-network","python3","tensorflow","tic-tac-toe"],"created_at":"2024-10-14T15:08:45.628Z","updated_at":"2025-12-30T23:29:09.865Z","avatar_url":"https://github.com/dinhanhx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tic tac toe Neural Network\n\nMy first project about neural network.\n\n## Installation\n\nYou need `tensorflow`, `keras` and `numpy` on Python 3.\n\nor just `pip install -r req.txt`\n\n## Project structure\n\n```\n.\n├── smort/ # Smort model\n├── TEST_training_history.py # Generated from Simulator.py\n├── training_history.py # Generated from Simulator.py\n├── Simulator.py # Generate random tic-tac-toe games\n├── NeuralNetwork.py # Train Smort by fitting training_history.pkl\n├── Test.py # Test Smort with TEST_training_history.pkl\n└── PlayWithSmort # You are O, Smort is X. O goes first.\n```\n\n## Play with Smort\n\n`py PlayWithSmort.py`\n\nNote that: your input is based on indices of matrix.\n\n## About Smort\n\nBecause Smort are trained with X goes first. Therefore, it is good at making X wins.\n\nGiven the board at any moment of one game, Smort can predict who will win with accuracy up to 0.70%\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinhanhx%2Ftic-tac-toe-nn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinhanhx%2Ftic-tac-toe-nn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinhanhx%2Ftic-tac-toe-nn/lists"}